Skip to content

Commit 1df80fd

Browse files
committed
fix: path for windows unit tests
1 parent 6fc6153 commit 1df80fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

setup-local/test/binaryControl.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,22 @@ describe('Binary Control Operations', () => {
3939
const platformAndBinary = [
4040
{
4141
binary: BINARY_LINKS.DARWIN,
42-
folder: `/work/binary/${LOCAL_BINARY_FOLDER}/darwin`,
42+
folder: ['/work', 'binary', LOCAL_BINARY_FOLDER, 'darwin'],
4343
arch: 'x64',
4444
platform: PLATFORMS.DARWIN,
4545
}, {
4646
binary: BINARY_LINKS.LINUX_32,
47-
folder: `/work/binary/${LOCAL_BINARY_FOLDER}/linux`,
47+
folder: ['/work', 'binary', LOCAL_BINARY_FOLDER, 'linux'],
4848
arch: 'x32',
4949
platform: PLATFORMS.LINUX,
5050
}, {
5151
binary: BINARY_LINKS.LINUX_64,
52-
folder: `/work/binary/${LOCAL_BINARY_FOLDER}/linux`,
52+
folder: ['/work', 'binary', LOCAL_BINARY_FOLDER, 'linux'],
5353
arch: 'x64',
5454
platform: PLATFORMS.LINUX,
5555
}, {
5656
binary: BINARY_LINKS.WINDOWS,
57-
folder: `/work/binary/${LOCAL_BINARY_FOLDER}/win32`,
57+
folder: ['/work', 'binary', LOCAL_BINARY_FOLDER, 'win32'],
5858
arch: 'x32',
5959
platform: PLATFORMS.WIN32,
6060
},
@@ -66,7 +66,7 @@ describe('Binary Control Operations', () => {
6666
sinon.stub(os, 'arch').returns(system.arch);
6767
const binaryControl = new BinaryControl();
6868
expect(binaryControl.binaryLink).to.eql(system.binary);
69-
expect(binaryControl.binaryFolder).to.include(path.resolve(system.folder));
69+
expect(binaryControl.binaryFolder).to.include(path.resolve(...system.folder));
7070
os.platform.restore();
7171
os.arch.restore();
7272
});

0 commit comments

Comments
 (0)