Skip to content

Commit

Permalink
test for errors (almost)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed May 2, 2017
1 parent ccfc4b5 commit d08e186
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/gate-executor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,28 @@ describe('gate-executor', function () {
done()
})
})

it('errors', function (done) {
// waiting on https://github.com/hapijs/lab/issues/703
done()

/*
try {
GateExecutor()
.add({
fn: function foo (done) {
throw new Error('foo')
}
})
.start()
}
catch(e) {
expect(e.message).to.equal('foo')
done()
}
*/
})

})


Expand Down

0 comments on commit d08e186

Please sign in to comment.