Skip to content

Commit

Permalink
cleanup (removing unused code) of fulfill test
Browse files Browse the repository at this point in the history
  • Loading branch information
jandockx committed Aug 19, 2017
1 parent fe20cb5 commit c0ea340
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/must/fulfill_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,8 @@ describe("Must.prototype.fulfill", function() {
function(done) {
var called = false
assert.pass(function() {
Must(Promise.reject(new Error('rejection'))).fulfill(function(result) { // fulfill fails, callback is not executed
Must(Promise.reject(new Error('rejection'))).fulfill(function() { // fulfill fails, callback is not executed
called = true
result.must.not.be.a.number() // fails
result.must.be.truthy()
return result
})
.then(raise(done), assertThrown(done, function() { return !called }))
})
Expand Down

0 comments on commit c0ea340

Please sign in to comment.