1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix test to match behavior

This commit is contained in:
frankiebee 2017-07-12 15:10:52 -07:00
parent bd26ec46aa
commit aeefcbd75b
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
const promiseToCallback = require('promise-to-callback'); const promiseToCallback = require('promise-to-callback')
module.exports = function(fn, context) { module.exports = function(fn, context) {
return function(){ return function(){

View File

@ -11,7 +11,7 @@ describe('nodeify', function () {
} }
it('should retain original context', function (done) { 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) { nodified('baz', function (err, res) {
assert.equal(res, 'barbaz') assert.equal(res, 'barbaz')
done() done()