Skip to content

Commit 3a72e0f

Browse files
jugglinmiketbranyen
authored andcommitted
Update test to use Mocha's promise handling
1 parent b93e446 commit 3a72e0f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

test/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@ var promisify = require("../");
22
var assert = require("assert");
33

44
describe("Promisify", function() {
5-
it("can convert a basic async function", function(done) {
5+
it("can convert a basic async function", function() {
66
function test(cb) {
77
cb(null, true);
88
}
99

1010
var wrappedTest = promisify(test);
11-
12-
wrappedTest().then(function(value) {
11+
12+
return wrappedTest().then(function(value) {
1313
assert.ok(value);
14-
done();
1514
});
1615
});
1716

0 commit comments

Comments
 (0)