Fix test to match behavior

feature/default_network_editable
frankiebee 7 years ago
parent bd26ec46aa
commit aeefcbd75b
  1. 2
      app/scripts/lib/nodeify.js
  2. 2
      test/unit/nodeify-test.js

@ -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…
Cancel
Save