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 targos committed Dec 26, 2016
1 parent a779e7f commit e72dfce
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 e72dfce

Please sign in to comment.