Skip to content

Commit e72dfce

Browse files
Avery, Franktargos
Avery, Frank
authored andcommitted
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: #9918 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent a779e7f commit e72dfce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-file-write-stream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ file
4646
assert.throws(function() {
4747
console.error('write after end should not be allowed');
4848
file.write('should not work anymore');
49-
});
49+
}, /^Error: write after end$/);
5050

5151
fs.unlinkSync(fn);
5252
});

0 commit comments

Comments
 (0)