summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-write-stream-throw-type-error.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2015-11-09 18:10:49 -0500
committerRoman Reiss <me@silverwind.io>2015-11-10 07:12:33 +0100
commit2c33819370e50cd1c1eae43d2fd88bdc5aca1905 (patch)
treec9e5134071d3d8c945e55c2d0f144a1948f45843 /test/parallel/test-fs-write-stream-throw-type-error.js
parent7b89a3de69b22face8a7077c0b695eba6d9fb353 (diff)
downloadandroid-node-v8-2c33819370e50cd1c1eae43d2fd88bdc5aca1905.tar.gz
android-node-v8-2c33819370e50cd1c1eae43d2fd88bdc5aca1905.tar.bz2
android-node-v8-2c33819370e50cd1c1eae43d2fd88bdc5aca1905.zip
test: fix tests that check error messages
20285ad17755187ece16b8a5effeaa87f5407da2 changed the format of error messages throughout lib. However, the tests were not updated to reflect these changes. This commit makes those changes. PR-URL: https://github.com/nodejs/node/pull/3727 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-fs-write-stream-throw-type-error.js')
-rw-r--r--test/parallel/test-fs-write-stream-throw-type-error.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/parallel/test-fs-write-stream-throw-type-error.js b/test/parallel/test-fs-write-stream-throw-type-error.js
index 6369722ac1..007ac03f1b 100644
--- a/test/parallel/test-fs-write-stream-throw-type-error.js
+++ b/test/parallel/test-fs-write-stream-throw-type-error.js
@@ -20,16 +20,16 @@ assert.doesNotThrow(function() {
assert.throws(function() {
fs.createWriteStream(example, null);
-}, /options must be a string or an object/);
+}, /"options" argument must be a string or an object/);
assert.throws(function() {
fs.createWriteStream(example, 123);
-}, /options must be a string or an object/);
+}, /"options" argument must be a string or an object/);
assert.throws(function() {
fs.createWriteStream(example, 0);
-}, /options must be a string or an object/);
+}, /"options" argument must be a string or an object/);
assert.throws(function() {
fs.createWriteStream(example, true);
-}, /options must be a string or an object/);
+}, /"options" argument must be a string or an object/);
assert.throws(function() {
fs.createWriteStream(example, false);
-}, /options must be a string or an object/);
+}, /"options" argument must be a string or an object/);