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-01-07 02:18:39 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2020-01-09 19:25:04 +0300
commit3f009fbf2c42f68c5127efecc6e22db105a74fe0 (patch)
treea0620ebf76be1388124f4a0bc54f66273a613166
parent9295046ac92bbe82f4d84e1ec90cc81d3b80bfc7 (diff)
Fix bin-overwriting test on Windows
Paired with @ruyadorno PR-URL: https://github.com/npm/cli/pull/659 Credit: @isaacs Close: #659 Reviewed-by: @ruyadorno
-rw-r--r--test/tap/bin-overwriting.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tap/bin-overwriting.js b/test/tap/bin-overwriting.js
index f5bbeca57..faaa78745 100644
--- a/test/tap/bin-overwriting.js
+++ b/test/tap/bin-overwriting.js
@@ -11,7 +11,7 @@ const readBin = bin => new Promise((resolve, reject) => {
if (er) {
reject(er)
} else {
- resolve(path.resolve(pkg + '/global/bin', target))
+ resolve(path.resolve(path.dirname(bin), target))
}
})
})