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