Browse Source

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: https://github.com/nodejs/node/pull/9918
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v6
Avery, Frank 8 years ago
committed by Rich Trott
parent
commit
4e1b2e73c4
  1. 2
      test/parallel/test-file-write-stream.js

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

@ -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);
});

Loading…
Cancel
Save