Skip to content

Commit

Permalink
Pending test implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Dec 20, 2016
1 parent 576e791 commit 919bb90
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions test/fixtures/helpers-error.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
throw new Error("Test-Error")
module.exports = {
helper1: function (abc) {
return 'helper1(' + abc + ')'
}
}
10 changes: 8 additions & 2 deletions test/main-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/* global describe */
/* global it */
// /* global xdescribe */
/* global xit */
/* global it */

'use strict'

Expand Down Expand Up @@ -51,7 +51,13 @@ describe('customize-engine-handlebars', function () {
})
})

xit('should throw an exception if loading an existing helpers module fails', function () {})
it('should throw an exception if loading an existing helpers module fails', function () {
return expect(hb.merge({
handlebars: {
helpers: 'test/fixtures/helpers-error.js'
}
}).run()).to.be.rejected
})

it('should apply the partial wrapper', function () {
var hb2 = hb.merge({
Expand Down

0 comments on commit 919bb90

Please sign in to comment.