From c0ea3401d406ae765702fbc0ee52cefcdb3125a2 Mon Sep 17 00:00:00 2001 From: Jan Dockx Date: Sat, 19 Aug 2017 23:35:48 +0200 Subject: [PATCH] cleanup (removing unused code) of fulfill test --- test/must/fulfill_test.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/must/fulfill_test.js b/test/must/fulfill_test.js index e94e85b..ff544d7 100644 --- a/test/must/fulfill_test.js +++ b/test/must/fulfill_test.js @@ -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 })) })