Skip to content

Commit

Permalink
Merge pull request #1712 from substack/feross/tests
Browse files Browse the repository at this point in the history
test: fix tests on node 0.10 that require ArrayBuffer
  • Loading branch information
feross authored Apr 5, 2017
2 parents cd01926 + de4147c commit d461420
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ test('Buffer', function (t) {
var c = {
t: t,
Uint8Array: Uint8Array,
DataView: DataView
ArrayBuffer: ArrayBuffer
};
vm.runInNewContext(src, c);
});
Expand Down
2 changes: 1 addition & 1 deletion test/leak.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ test('leaking information about system paths (Buffer)', function (t) {
t.equal(src.indexOf(dirstring), -1, 'temp directory visible');
t.equal(src.indexOf(process.cwd()), -1, 'cwd directory visible');
t.equal(src.indexOf('/home'), -1, 'home directory visible');
vm.runInNewContext(src, { t: t, setTimeout: setTimeout, Uint8Array: Uint8Array });
vm.runInNewContext(src, { t: t, setTimeout: setTimeout, Uint8Array: Uint8Array, ArrayBuffer: ArrayBuffer });
});
});

0 comments on commit d461420

Please sign in to comment.