Skip to content

Commit

Permalink
test: change the regluar express
Browse files Browse the repository at this point in the history
update the test/parallel/test-vm-create-context-arg.js
in line 27 to change the regluar expression `TypeError`
with the `/^TypeError: sandbox must be an object$/`
  • Loading branch information
AkiraXue committed Jul 16, 2017
1 parent 5d3609d commit f8024fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-vm-create-context-arg.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const vm = require('vm');

assert.throws(function() {
vm.createContext('string is not supported');
}, TypeError);
}, /^TypeError: sandbox must be an object$/);

assert.doesNotThrow(function() {
vm.createContext({ a: 1 });
Expand Down

0 comments on commit f8024fb

Please sign in to comment.