From e9707538736d7d493f9d7a60821b5a5f7bec759e 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 3c7cf8f341dce2..3b6883444249e6 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); });