From c5ef402d7961783b537befe8a68fce40d519cb3e Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Mon, 31 Jul 2017 02:45:58 +0300 Subject: [PATCH] test: fix linking test on Windows --- test/link.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/link.ts b/test/link.ts index e0c3e80023..839119aace 100644 --- a/test/link.ts +++ b/test/link.ts @@ -11,6 +11,7 @@ import { } from './utils' import thenify = require('thenify') import fs = require('mz/fs') +import isWindows = require('is-windows') test('linking multiple packages', async (t: tape.Test) => { const project = prepare(t) @@ -49,5 +50,6 @@ test('link global bin', async function (t: tape.Test) { await execPnpm('link') - isExecutable(t, path.join(global, 'bin', 'package-with-bin')) + const globalBin = isWindows() ? global : path.join(global, 'bin') + isExecutable(t, path.join(globalBin, 'package-with-bin')) })