From e72dfce2c892b527bcdc5e02b86cea6a87e54991 Mon Sep 17 00:00:00 2001 From: "Avery, Frank" Date: Thu, 1 Dec 2016 10:22:35 -0600 Subject: [PATCH] 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 Reviewed-By: Colin Ihrig --- test/parallel/test-file-write-stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-file-write-stream.js b/test/parallel/test-file-write-stream.js index b9d9fd76b88df2..d4b9a26c0fc5c8 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); });