Skip to content

Commit 2076890

Browse files
committed
Fix tests for browserify@16.
1 parent dd37668 commit 2076890

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

test/async.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ test('async', function (t) {
1313
if (err) t.fail(err);
1414
vm.runInNewContext(src, {
1515
setTimeout: setTimeout,
16+
clearTimeout: clearTimeout,
1617
console: { log: log }
1718
});
1819
});
@@ -27,6 +28,7 @@ test('async encoding', function (t) {
2728
if (err) t.fail(err);
2829
vm.runInNewContext(src, {
2930
setTimeout: setTimeout,
31+
clearTimeout: clearTimeout,
3032
console: { log: log }
3133
});
3234
});
@@ -41,6 +43,7 @@ test('async string encoding', function (t) {
4143
if (err) t.fail(err);
4244
vm.runInNewContext(src, {
4345
setTimeout: setTimeout,
46+
clearTimeout: clearTimeout,
4447
console: { log: log }
4548
});
4649
});

test/readdir.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ test('readdir', function(t) {
1515
if (err) t.fail(err);
1616
vm.runInNewContext(src, {
1717
console: { log: log },
18-
setTimeout: setTimeout
18+
setTimeout: setTimeout,
19+
clearTimeout: clearTimeout
1920
});
2021
});
2122

test/tr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ test('parse non-js, non-json files', function (t) {
2929
if (err) t.fail(err);
3030
vm.runInNewContext(src, { console: { log: log } });
3131
});
32-
bs.on('transform', function (tr) {
32+
b.on('transform', function (tr) {
3333
tr.on('file', function (file) {
3434
t.equal(file, __dirname + '/files/tr.html');
3535
});

0 commit comments

Comments
 (0)