| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,28 +1,28 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - var common = require('../common'); | ||
| 3 | - var assert = require('assert'); | ||
| 4 | - var cp = require('child_process'); | ||
| 5 | - var os = require('os'); | ||
| 6 | - var path = require('path'); | ||
| 2 | + const common = require('../common'); | ||
| 3 | + const assert = require('assert'); | ||
| 4 | + const cp = require('child_process'); | ||
| 5 | + const os = require('os'); | ||
| 6 | + const path = require('path'); | ||
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | 9 | if (process.argv[2] === 'child') { | |
| 10 | 10 | if (common.isWindows) | |
| 11 | - assert.equal(process.env.USERPROFILE, undefined); | ||
| 11 | + assert.strictEqual(process.env.USERPROFILE, undefined); | ||
| 12 | 12 | else | |
| 13 | - assert.equal(process.env.HOME, undefined); | ||
| 13 | + assert.strictEqual(process.env.HOME, undefined); | ||
| 14 | 14 | ||
| 15 | - var home = os.homedir(); | ||
| 15 | + const home = os.homedir(); | ||
| 16 | 16 | ||
| 17 | - assert.ok(typeof home === 'string'); | ||
| 18 | - assert.ok(home.indexOf(path.sep) !== -1); | ||
| 17 | + assert.strictEqual(typeof home, 'string'); | ||
| 18 | + assert(home.includes(path.sep)); | ||
| 19 | 19 | } else { | |
| 20 | 20 | if (common.isWindows) | |
| 21 | 21 | delete process.env.USERPROFILE; | |
| 22 | 22 | else | |
| 23 | 23 | delete process.env.HOME; | |
| 24 | 24 | ||
| 25 | - var child = cp.spawnSync(process.execPath, [__filename, 'child'], { | ||
| 25 | + const child = cp.spawnSync(process.execPath, [__filename, 'child'], { | ||
| 26 | 26 | env: process.env | |
| 27 | 27 | }); | |
| 28 | 28 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments