diff options
author | isaacs <i@izs.me> | 2020-01-07 02:18:39 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2020-01-09 19:25:04 +0300 |
commit | 3f009fbf2c42f68c5127efecc6e22db105a74fe0 (patch) | |
tree | a0620ebf76be1388124f4a0bc54f66273a613166 | |
parent | 9295046ac92bbe82f4d84e1ec90cc81d3b80bfc7 (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.js | 2 |
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)) } }) }) |