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:
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) {
|
module.exports = function(fn, context) {
|
||||||
return function(){
|
return function(){
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user