aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-07-13 06:10:52 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-07-13 06:10:52 +0800
commitaeefcbd75bcf419833b9cc5b734e2d86f47ba6d1 (patch)
tree4d07502423a132aa396f1ddc37175b9da62806cc
parentbd26ec46aa8f2d144939573a8c427e2a7743d25c (diff)
downloadtangerine-wallet-browser-aeefcbd75bcf419833b9cc5b734e2d86f47ba6d1.tar
tangerine-wallet-browser-aeefcbd75bcf419833b9cc5b734e2d86f47ba6d1.tar.gz
tangerine-wallet-browser-aeefcbd75bcf419833b9cc5b734e2d86f47ba6d1.tar.bz2
tangerine-wallet-browser-aeefcbd75bcf419833b9cc5b734e2d86f47ba6d1.tar.lz
tangerine-wallet-browser-aeefcbd75bcf419833b9cc5b734e2d86f47ba6d1.tar.xz
tangerine-wallet-browser-aeefcbd75bcf419833b9cc5b734e2d86f47ba6d1.tar.zst
tangerine-wallet-browser-aeefcbd75bcf419833b9cc5b734e2d86f47ba6d1.zip
Fix test to match behavior
-rw-r--r--app/scripts/lib/nodeify.js2
-rw-r--r--test/unit/nodeify-test.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/lib/nodeify.js b/app/scripts/lib/nodeify.js
index 4e111c8b2..299bfe624 100644
--- a/app/scripts/lib/nodeify.js
+++ b/app/scripts/lib/nodeify.js
@@ -1,4 +1,4 @@
-const promiseToCallback = require('promise-to-callback');
+const promiseToCallback = require('promise-to-callback')
module.exports = function(fn, context) {
return function(){
diff --git a/test/unit/nodeify-test.js b/test/unit/nodeify-test.js
index 5aed758fa..06241334d 100644
--- a/test/unit/nodeify-test.js
+++ b/test/unit/nodeify-test.js
@@ -11,7 +11,7 @@ describe('nodeify', function () {
}
it('should retain original context', function (done) {
- var nodified = nodeify(obj.promiseFunc).bind(obj)
+ var nodified = nodeify(obj.promiseFunc, obj)
nodified('baz', function (err, res) {
assert.equal(res, 'barbaz')
done()