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()