| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1ccaf9a commit c10b131
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,6 +15,8 @@ const tmpdir = require('../common/tmpdir'); | |||
| 15 | 15 | const command = common.isWindows ? 'cd' : 'pwd'; | |
| 16 | 16 | const options = { cwd: tmpdir.path }; | |
| 17 | 17 | ||
| 18 | + tmpdir.refresh(); | ||
| 19 | + | ||
| 18 | 20 | if (common.isWindows) { | |
| 19 | 21 | // This test is not the case for Windows based systems | |
| 20 | 22 | // unless the `shell` options equals to `true` | |
@@ -31,12 +33,13 @@ const testCases = [ | |||
| 31 | 33 | const expectedResult = tmpdir.path.trim().toLowerCase(); | |
| 32 | 34 | ||
| 33 | 35 | const results = testCases.map((testCase) => { | |
| 34 | - const { stdout, stderr } = spawnSync( | ||
| 36 | + const { stdout, stderr, error } = spawnSync( | ||
| 35 | 37 | command, | |
| 36 | 38 | testCase, | |
| 37 | 39 | options | |
| 38 | 40 | ); | |
| 39 | 41 | ||
| 42 | + assert.ifError(error); | ||
| 40 | 43 | assert.deepStrictEqual(stderr, Buffer.alloc(0)); | |
| 41 | 44 | ||
| 42 | 45 | return stdout.toString().trim().toLowerCase(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments