From 3d87e8fc3f915618e7f37df3b9f5f52ce69998e0 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 13 Apr 2018 16:27:50 -0700 Subject: [PATCH] standard: resolve linting nits. (#175) --- package.json | 2 +- test/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 6f1a75f..89a7526 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,6 @@ } }, "engines": { - "node" : ">=4" + "node": ">=4" } } diff --git a/test/index.js b/test/index.js index 3c546c7..3490c26 100644 --- a/test/index.js +++ b/test/index.js @@ -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 @@ -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')