From 9b447f0b81b0095ab8349f9ea321f6d07b174b0b Mon Sep 17 00:00:00 2001
From: Gordey Doronin <gordey4doronin@github.com>
Date: Fri, 25 Jun 2021 11:48:41 +0200
Subject: [PATCH] Fix paths for windows tests

---
 __tests__/installer.test.ts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/__tests__/installer.test.ts b/__tests__/installer.test.ts
index a6907c4c..0376761e 100644
--- a/__tests__/installer.test.ts
+++ b/__tests__/installer.test.ts
@@ -580,7 +580,7 @@ describe('setup-node', () => {
       );
       expect(logSpy).toHaveBeenCalledWith(`Found in cache @ ${toolPath}`);
       expect(cnSpy).toHaveBeenCalledWith(
-        `::add-path::${toolPath}/bin${osm.EOL}`
+        `::add-path::${path.join(toolPath, 'bin')}${osm.EOL}`
       );
     });
 
@@ -624,7 +624,7 @@ describe('setup-node', () => {
       expect(logSpy).toHaveBeenCalledWith('Extracting ...');
       expect(logSpy).toHaveBeenCalledWith('Adding to the cache ...');
       expect(cnSpy).toHaveBeenCalledWith(
-        `::add-path::${toolPath}/bin${osm.EOL}`
+        `::add-path::${path.join(toolPath, 'bin')}${osm.EOL}`
       );
     });
 
@@ -658,7 +658,7 @@ describe('setup-node', () => {
       );
       expect(logSpy).toHaveBeenCalledWith(`Found in cache @ ${toolPath}`);
       expect(cnSpy).toHaveBeenCalledWith(
-        `::add-path::${toolPath}/bin${osm.EOL}`
+        `::add-path::${path.join(toolPath, 'bin')}${osm.EOL}`
       );
     });
 
@@ -702,7 +702,7 @@ describe('setup-node', () => {
       expect(logSpy).toHaveBeenCalledWith('Extracting ...');
       expect(logSpy).toHaveBeenCalledWith('Adding to the cache ...');
       expect(cnSpy).toHaveBeenCalledWith(
-        `::add-path::${toolPath}/bin${osm.EOL}`
+        `::add-path::${path.join(toolPath, 'bin')}${osm.EOL}`
       );
     });