From b9af78dd4e05df65ff39168f2e7aa648618b7044 Mon Sep 17 00:00:00 2001 From: Edwin Sirko Date: Fri, 26 Jan 2024 21:54:49 -0500 Subject: [PATCH] fix --- __tests__/main.test.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index c7d940d..d550439 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -20,7 +20,6 @@ let setOutputMock: jest.SpyInstance // Mock the filesystem helper let createTempDirMock: jest.SpyInstance -let isDirectoryMock: jest.SpyInstance let createArchivesMock: jest.SpyInstance let removeDirMock: jest.SpyInstance let getConsolidatedDirectoryMock: jest.SpyInstance @@ -42,7 +41,6 @@ describe('action', () => { createTempDirMock = jest .spyOn(fsHelper, 'createTempDir') .mockImplementation() - isDirectoryMock = jest.spyOn(fsHelper, 'isDirectory').mockImplementation() createArchivesMock = jest .spyOn(fsHelper, 'createArchives') .mockImplementation() @@ -122,8 +120,6 @@ describe('action', () => { return '' }) - isDirectoryMock.mockImplementation(() => true) - getConsolidatedDirectoryMock.mockImplementation(() => { throw new Error('Something went wrong') }) @@ -154,7 +150,6 @@ describe('action', () => { return '' }) - // isDirectoryMock.mockImplementation(() => true) getConsolidatedDirectoryMock.mockImplementation(() => { return { consolidatedDirectory: '/tmp/test', needToCleanUpDir: false } }) @@ -210,7 +205,6 @@ async function testHappyPath(version: string, path: string): Promise { return '' }) - isDirectoryMock.mockImplementation(() => true) isActionRepoMock.mockImplementation(() => true) getConsolidatedDirectoryMock.mockImplementation(() => {