Skip to content

Commit

Permalink
Fix test for mocha 3.0
Browse files Browse the repository at this point in the history
In Mocha 3.0, tests may not return a Promise *and* call the `done`-callback
  • Loading branch information
nknapp committed Jan 20, 2017
1 parent 966695c commit 08b205a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/default-suite.js
Expand Up @@ -68,11 +68,10 @@ function runDefaultSuite () {
.to.eventually.equal('abc,abc')
})

it('simple helpers should also be able to return real values', function (done) {
it('simple helpers should also be able to return real values', function () {
var template = this.Handlebars.compile(fixture('synchronous-simple-helper.hbs'))
return expect(template({}))
.to.eventually.equal('27')
.notify(done)
})

it('helpers passed in as parameters like {{#helper (otherhelper 123)}} should be resolved within the helper call', function () {
Expand Down

0 comments on commit 08b205a

Please sign in to comment.