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 evanlucas committed Jan 4, 2017
1 parent 14826d0 commit a2ec794
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 a2ec794

Please sign in to comment.