Skip to content

Commit 1fbe6f6

Browse files
committed
changed tests from setImmediate to Promise
1 parent d5e8ec7 commit 1fbe6f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • test/cases/chunks/import-context

‎test/cases/chunks/import-context/index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ it("should be able to use expressions in System.import", function(done) {
1717
sync.should.be.eql(true);
1818
done();
1919
});
20-
setImmediate(function() {
20+
Promise.resolve().then(function() {}).then(function() {}).then(function() {
2121
sync = false;
2222
});
2323
});
2424
});
25-
setImmediate(function() {
25+
Promise.resolve().then(function() {
2626
sync = false;
2727
});
2828
});

0 commit comments

Comments
 (0)