Skip to content

Commit

Permalink
test: improve test-vm-cached-data.js
Browse files Browse the repository at this point in the history
* verify error message by adding 2nd argument to throws in test-assert

PR-URL: #11974
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
mpelekh authored and MylesBorins committed Apr 18, 2017
1 parent d5f9390 commit f3f4ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-vm-cached-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ assert.throws(() => {
new vm.Script('function abc() {}', {
cachedData: 'ohai'
});
});
}, /^TypeError: options.cachedData must be a Buffer instance$/);

0 comments on commit f3f4ac4

Please sign in to comment.