Skip to content

Commit

Permalink
test: added validation regex argument to test
Browse files Browse the repository at this point in the history
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: #9918
Reviewed-By: Teddy Katz <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
Avery, Frank authored and Trott committed Dec 23, 2016
1 parent 70d752e commit 4e1b2e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-file-write-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 4e1b2e7

Please sign in to comment.