Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2020-07-29 20:59:57 +0300
committerisaacs <i@izs.me>2020-07-29 21:55:35 +0300
commit2652baaf7cab47c58360ebbecaf951fa8b9e1862 (patch)
treee9a5968d93be19587f78c267c04b3edeca825805 /test/lib/install.js
parentbf2e3341e706b4a6e7ea4587f555c1cb18dfbfe9 (diff)
test: more affordances for Windows
PR-URL: https://github.com/npm/cli/pull/1509 Credit: @isaacs Close: #1509 Reviewed-by: @ruyadorno
Diffstat (limited to 'test/lib/install.js')
-rw-r--r--test/lib/install.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lib/install.js b/test/lib/install.js
index 7bdca743e..1650dcb8c 100644
--- a/test/lib/install.js
+++ b/test/lib/install.js
@@ -109,7 +109,8 @@ test('completion to folder', (t) => {
partialWord: '/ar'
}, (er, res) => {
t.equal(er, null)
- t.strictSame(res, ['/arborist'], 'package dir match')
+ const expect = process.platform === 'win32' ? '\\arborist' : '/arborist'
+ t.strictSame(res, [expect], 'package dir match')
t.end()
})
})