Skip to content

Commit c9e853d

Browse files
committed
Added test showing multiple requires works.
1 parent b036287 commit c9e853d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ describe("Promisify", function() {
2323
var fs = promisify("fs");
2424
return fs.readFile(__dirname + "/../LICENSE");
2525
});
26+
27+
it("can promisify the same object twice without breaking", function() {
28+
var fs = promisify("fs");
29+
fs = promisify("fs");
30+
31+
return fs.readFile(__dirname + "/../LICENSE");
32+
});
2633
});
2734

2835
describe("asynchronous method inference", function() {

0 commit comments

Comments
 (0)