mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: assert.throws() should include a RegExp
PR-URL: https://github.com/nodejs/node/pull/9976 Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
6f2f02d5ad
commit
d8dc890352
1 file changed
+1
-1
@@ -18,7 +18,7 @@ process.on('exit', function() {
|
||||
assert.notStrictEqual(persistentPid, -1);
|
||||
assert.throws(function() {
|
||||
process.kill(child.pid);
|
||||
});
|
||||
}, /^Error: kill ESRCH$/);
|
||||
assert.doesNotThrow(function() {
|
||||
process.kill(persistentPid);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user