Skip to content

Commit

Permalink
fixed broken test
Browse files Browse the repository at this point in the history
the reason was a badly placed (pair of) braces
  • Loading branch information
jandockx committed Aug 31, 2017
1 parent 03bb54c commit 43b4ede
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/must/betray_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@ describe("Must.prototype.betray", function() {
}
)

it( // MUDO this test has issues
it(
"must pass given a Promise that rejects and a catchCondition that throws, " +
"and eventually pass, and reject to the rejection of the catchCondition",
function(done) {
var called = false
assert.pass(function() {
Must(Promise.reject(43).betray(function(err) {
Must(Promise.reject(42)).betray(function(err) {
called = true
err.must.be.a.number()
err.must.be.truthy()
throw err // the resulting promise will be rejected
})
.then(raise(done), assertStrictEqual(done, 42, function() { return called })))
.then(raise(done), assertStrictEqual(done, 42, function() { return called }))
})
}
)
Expand Down

0 comments on commit 43b4ede

Please sign in to comment.