aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-08-04 11:52:09 +0800
committerGitHub <noreply@github.com>2017-08-04 11:52:09 +0800
commit500e7d1f04e72558fa8eb4aee60c24e5d7b71a94 (patch)
treea949fd26187c1a707d48694d24ca3dfe1db2ef9b /test
parentb955b5a89a9ed7fd74cfec84cbf4b3623e4661e4 (diff)
downloadtangerine-wallet-browser-500e7d1f04e72558fa8eb4aee60c24e5d7b71a94.tar
tangerine-wallet-browser-500e7d1f04e72558fa8eb4aee60c24e5d7b71a94.tar.gz
tangerine-wallet-browser-500e7d1f04e72558fa8eb4aee60c24e5d7b71a94.tar.bz2
tangerine-wallet-browser-500e7d1f04e72558fa8eb4aee60c24e5d7b71a94.tar.lz
tangerine-wallet-browser-500e7d1f04e72558fa8eb4aee60c24e5d7b71a94.tar.xz
tangerine-wallet-browser-500e7d1f04e72558fa8eb4aee60c24e5d7b71a94.tar.zst
tangerine-wallet-browser-500e7d1f04e72558fa8eb4aee60c24e5d7b71a94.zip
nodeify - test - syntax nitpick
Diffstat (limited to 'test')
-rw-r--r--test/unit/nodeify-test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/nodeify-test.js b/test/unit/nodeify-test.js
index f4fe320ca..537dae605 100644
--- a/test/unit/nodeify-test.js
+++ b/test/unit/nodeify-test.js
@@ -19,13 +19,13 @@ describe('nodeify', function () {
})
it('should throw if the last argument is not a function', function (done) {
- var nodified = nodeify(obj.promiseFunc, obj)
+ 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) {
- if (err.message === 'callback is not a function') done()
- else done(err)
+ assert.equal(err.message, 'callback is not a function')
+ done()
}
})
})