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 <teddy.katz@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
Avery, Frank authored and evanlucas committed Jan 3, 2017
1 parent 2a4c5ff commit e970753
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 e970753

Please sign in to comment.