summaryrefslogtreecommitdiff
path: root/test/parallel/test-file-write-stream.js
diff options
context:
space:
mode:
authorAvery, Frank <FrankAvery@quickenloans.com>2016-12-01 10:22:35 -0600
committerRich Trott <rtrott@gmail.com>2016-12-22 18:27:34 -0800
commit4e1b2e73c46873ae91d5c18f718ac876caa73892 (patch)
tree881da82b7d2fe85b723559445b925e0a9e3332a3 /test/parallel/test-file-write-stream.js
parent70d752eac816cb7daf7ad56f6b45d2d71e140105 (diff)
downloadandroid-node-v8-4e1b2e73c46873ae91d5c18f718ac876caa73892.tar.gz
android-node-v8-4e1b2e73c46873ae91d5c18f718ac876caa73892.tar.bz2
android-node-v8-4e1b2e73c46873ae91d5c18f718ac876caa73892.zip
test: added validation regex argument to test
In this change, I've added the regex pattern to the assert.throws() in order to provide the validation argument for the call. PR-URL: https://github.com/nodejs/node/pull/9918 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-file-write-stream.js')
-rw-r--r--test/parallel/test-file-write-stream.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-file-write-stream.js b/test/parallel/test-file-write-stream.js
index 3c7cf8f341..3b68834442 100644
--- a/test/parallel/test-file-write-stream.js
+++ b/test/parallel/test-file-write-stream.js
@@ -46,7 +46,7 @@ file
assert.throws(function() {
console.error('write after end should not be allowed');
file.write('should not work anymore');
- });
+ }, /^Error: write after end$/);
fs.unlinkSync(fn);
});