Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Commit

Permalink
standard: resolve linting nits. (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton authored and zkat committed Apr 13, 2018
1 parent cba97bb commit 3d87e8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -70,6 +70,6 @@
}
},
"engines": {
"node" : ">=4"
"node": ">=4"
}
}
6 changes: 3 additions & 3 deletions test/index.js
Expand Up @@ -142,9 +142,9 @@ test('installPackages unit', t => {
}
},
escapeArg (arg) {
if (arg === '/f@ke_/path to/node'){
if (arg === '/f@ke_/path to/node') {
return '\'/f@ke_/path to/node\''
} else if (arg === 'C:\\f@ke_\\path to\\node'){
} else if (arg === 'C:\\f@ke_\\path to\\node') {
return '"C:\\f@ke_\\path to\\node"'
}
return arg
Expand Down Expand Up @@ -190,7 +190,7 @@ test('installPackages unit', t => {
npm: NPM_PATH
}).then((npmPath) => {
process.argv[0] = nodePath
if (isWindows){
if (isWindows) {
t.equal(npmPath, '"C:\\f@ke_\\path to\\node"', 'incorrectly escaped path win32')
} else {
t.equal(npmPath, '/f@ke_/path to/node', 'incorrectly escaped path *nix')
Expand Down

0 comments on commit 3d87e8f

Please sign in to comment.