From 3f009fbf2c42f68c5127efecc6e22db105a74fe0 Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 6 Jan 2020 15:18:39 -0800 Subject: [PATCH] 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 --- test/tap/bin-overwriting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tap/bin-overwriting.js b/test/tap/bin-overwriting.js index f5bbeca5748f4..faaa78745a742 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)) } }) })