Closed holyshared closed 8 years ago
I welcome pull requests! I don't actually use this library anymore, so any help you can provide is welcome. :)
I'm going to go ahead and close this issue. Please feel free to reopen or create a pull request. Thank you!
In case anyone finds this, ( and @elliotf perhaps it could be in the readme ), I was able to get promises working with code like this:
const Q = require('q') // or import Q from 'q';
const promise = Q.nfcall(clearDB);
// example
// Q.nfcall(clearDB).then(function() {
//
//}).catch(function(err) {
// handle err here
//});
Also works in jest 🎉
I think that when you to return the Promise object, become better. For example, will be as follows.
What do you think?.