We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b93e446 commit 3a72e0fCopy full SHA for 3a72e0f
1 file changed
test/index.js
@@ -2,16 +2,15 @@ var promisify = require("../");
2
var assert = require("assert");
3
4
describe("Promisify", function() {
5
- it("can convert a basic async function", function(done) {
+ it("can convert a basic async function", function() {
6
function test(cb) {
7
cb(null, true);
8
}
9
10
var wrappedTest = promisify(test);
11
-
12
- wrappedTest().then(function(value) {
+
+ return wrappedTest().then(function(value) {
13
assert.ok(value);
14
- done();
15
});
16
17
0 commit comments