| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4f5f0e4 commit 210290d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,6 +24,10 @@ assert.throws(function() { process.kill(+'not a number'); }, TypeError); | |||
| 24 | 24 | assert.throws(function() { process.kill(1 / 0); }, TypeError); | |
| 25 | 25 | assert.throws(function() { process.kill(-1 / 0); }, TypeError); | |
| 26 | 26 | ||
| 27 | + // Test that kill throws an error for invalid signal | ||
| 28 | + | ||
| 29 | + assert.throws(function() { process.kill(1, 'test'); }, Error); | ||
| 30 | + | ||
| 27 | 31 | // Test kill argument processing in valid cases. | |
| 28 | 32 | // | |
| 29 | 33 | // Monkey patch _kill so that we don't actually send any signals, particularly | |
| Back | FazBrowse Home | New Git URL |
0 commit comments