| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9a88fe4 commit 3d05d82
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,13 +36,11 @@ let caught = false; | |||
| 36 | 36 | // Verify that stderr is not accessed when a bad shell is used | |
| 37 | 37 | assert.throws( | |
| 38 | 38 | function() { execSync('exit -1', { shell: 'bad_shell' }); }, | |
| 39 | - /spawnSync bad_shell ENOENT/, | ||
| 40 | - 'execSync did not throw the expected exception!' | ||
| 39 | + /spawnSync bad_shell ENOENT/ | ||
| 41 | 40 | ); | |
| 42 | 41 | assert.throws( | |
| 43 | 42 | function() { execFileSync('exit -1', { shell: 'bad_shell' }); }, | |
| 44 | - /spawnSync bad_shell ENOENT/, | ||
| 45 | - 'execFileSync did not throw the expected exception!' | ||
| 43 | + /spawnSync bad_shell ENOENT/ | ||
| 46 | 44 | ); | |
| 47 | 45 | ||
| 48 | 46 | let cmd, ret; | |
@@ -56,7 +54,7 @@ try { | |||
| 56 | 54 | } finally { | |
| 57 | 55 | assert.strictEqual(ret, undefined, | |
| 58 | 56 | `should not have a return value, received ${ret}`); | |
| 59 | - assert.strictEqual(caught, true, 'execSync should throw'); | ||
| 57 | + assert.ok(caught, 'execSync should throw'); | ||
| 60 | 58 | const end = Date.now() - start; | |
| 61 | 59 | assert(end < SLEEP); | |
| 62 | 60 | assert(err.status > 128 || err.signal); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments