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); });