Skip to content

Commit 3f009fb

Browse files
isaacsruyadorno
authored andcommitted
Fix bin-overwriting test on Windows
Paired with @ruyadorno PR-URL: #659 Credit: @isaacs Close: #659 Reviewed-by: @ruyadorno
1 parent 9295046 commit 3f009fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/tap/bin-overwriting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const readBin = bin => new Promise((resolve, reject) => {
1111
if (er) {
1212
reject(er)
1313
} else {
14-
resolve(path.resolve(pkg + '/global/bin', target))
14+
resolve(path.resolve(path.dirname(bin), target))
1515
}
1616
})
1717
})

0 commit comments

Comments
 (0)