mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Fix test to match behavior
This commit is contained in:
parent
bd26ec46aa
commit
aeefcbd75b
@ -1,4 +1,4 @@
|
||||
const promiseToCallback = require('promise-to-callback');
|
||||
const promiseToCallback = require('promise-to-callback')
|
||||
|
||||
module.exports = function(fn, context) {
|
||||
return function(){
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user