From af20c6e1f71753f044065b73e6caf72e04883fcf Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 1 Nov 2020 23:00:22 +0100 Subject: [PATCH] Fix tests --- __tests__/installer.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/installer.test.ts b/__tests__/installer.test.ts index 0886c84..fb97869 100644 --- a/__tests__/installer.test.ts +++ b/__tests__/installer.test.ts @@ -5,12 +5,12 @@ describe('installer', () => { it('acquires v0.3.1 version of xgo', async () => { const xgo = await installer.getXgo('v0.3.1'); console.log(xgo); - expect(fs.existsSync(xgo)).toBe(true); + expect(fs.existsSync(xgo.path)).toBe(true); }, 100000); it('acquires latest version of xgo', async () => { const xgo = await installer.getXgo('latest'); console.log(xgo); - expect(fs.existsSync(xgo)).toBe(true); + expect(fs.existsSync(xgo.path)).toBe(true); }, 100000); });