Permalink
Browse files

test: improve test-vm-cached-data.js

* 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...
nickpeleh authored and jasnell committed Mar 21, 2017
1 parent 0d000ca commit 89d9c3f4a7a552caccf98ea52e4800472bff68ef
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/parallel/test-vm-cached-data.js
@@ -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 89d9c3f

Please sign in to comment.