ran npm run tdd
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
module.exports = promisify = func => (...args) =>
|
||||
const promisify = func => (...args) =>
|
||||
new Promise((resolve, reject) =>
|
||||
func(...args, (err, result) => (err ? reject(err) : resolve(result)))
|
||||
);
|
||||
);
|
||||
module.exports = promisify
|
||||
Reference in New Issue
Block a user