| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,7 +53,8 @@ try { | |||
| 53 | 53 | assert.strictEqual(e.errno, 'ETIMEDOUT'); | |
| 54 | 54 | err = e; | |
| 55 | 55 | } finally { | |
| 56 | - assert.strictEqual(ret, undefined, 'we should not have a return value'); | ||
| 56 | + assert.strictEqual(ret, undefined, | ||
| 57 | + `should not have a return value, received ${ret}`); | ||
| 57 | 58 | assert.strictEqual(caught, true, 'execSync should throw'); | |
| 58 | 59 | const end = Date.now() - start; | |
| 59 | 60 | assert(end < SLEEP); | |
@@ -74,11 +75,11 @@ cmd = `"${process.execPath}" -e "console.log('${msg}');"`; | |||
| 74 | 75 | ret = execSync(cmd); | |
| 75 | 76 | ||
| 76 | 77 | assert.strictEqual(ret.length, msgBuf.length); | |
| 77 | - assert.deepStrictEqual(ret, msgBuf, 'execSync result buffer should match'); | ||
| 78 | + assert.deepStrictEqual(ret, msgBuf); | ||
| 78 | 79 | ||
| 79 | 80 | ret = execSync(cmd, { encoding: 'utf8' }); | |
| 80 | 81 | ||
| 81 | - assert.strictEqual(ret, `${msg}\n`, 'execSync encoding result should match'); | ||
| 82 | + assert.strictEqual(ret, `${msg}\n`); | ||
| 82 | 83 | ||
| 83 | 84 | const args = [ | |
| 84 | 85 | '-e', | |
@@ -90,8 +91,7 @@ assert.deepStrictEqual(ret, msgBuf); | |||
| 90 | 91 | ||
| 91 | 92 | ret = execFileSync(process.execPath, args, { encoding: 'utf8' }); | |
| 92 | 93 | ||
| 93 | - assert.strictEqual(ret, `${msg}\n`, | ||
| 94 | - 'execFileSync encoding result should match'); | ||
| 94 | + assert.strictEqual(ret, `${msg}\n`); | ||
| 95 | 95 | ||
| 96 | 96 | // Verify that the cwd option works - GH #7824 | |
| 97 | 97 | { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments