aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-10-07 04:16:44 +0800
committerkumavis <aaron@kumavis.me>2017-10-07 04:16:44 +0800
commit3b3120c5f83d0971747abc28e9a3ddfc3da34be3 (patch)
treee69d0776f5bcd4c46205774cdd5c4e226494dbac /test
parentbe4f7b33f4f0885f2c0f5f4d537f6e9793f3fa30 (diff)
downloadtangerine-wallet-browser-3b3120c5f83d0971747abc28e9a3ddfc3da34be3.tar.gz
tangerine-wallet-browser-3b3120c5f83d0971747abc28e9a3ddfc3da34be3.tar.zst
tangerine-wallet-browser-3b3120c5f83d0971747abc28e9a3ddfc3da34be3.zip
nodeify - fix test
Diffstat (limited to 'test')
-rw-r--r--test/unit/nodeify-test.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/unit/nodeify-test.js b/test/unit/nodeify-test.js
index 537dae605..c7b127889 100644
--- a/test/unit/nodeify-test.js
+++ b/test/unit/nodeify-test.js
@@ -18,14 +18,13 @@ describe('nodeify', function () {
})
})
- it('should throw if the last argument is not a function', function (done) {
+ it('should allow the last argument to not be a function', function (done) {
const nodified = nodeify(obj.promiseFunc, obj)
try {
nodified('baz')
- done(new Error('should have thrown if the last argument is not a function'))
- } catch (err) {
- assert.equal(err.message, 'callback is not a function')
done()
+ } catch (err) {
+ done(new Error('should not have thrown if the last argument is not a function'))
}
})
})