From 2c33819370e50cd1c1eae43d2fd88bdc5aca1905 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Mon, 9 Nov 2015 18:10:49 -0500 Subject: test: fix tests that check error messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Johan Bergström Reviewed-By: James M Snell --- test/parallel/test-fs-write-stream-throw-type-error.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/parallel/test-fs-write-stream-throw-type-error.js') 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/); -- cgit v1.2.3