fix
This commit is contained in:
@@ -20,7 +20,6 @@ let setOutputMock: jest.SpyInstance
|
|||||||
|
|
||||||
// Mock the filesystem helper
|
// Mock the filesystem helper
|
||||||
let createTempDirMock: jest.SpyInstance
|
let createTempDirMock: jest.SpyInstance
|
||||||
let isDirectoryMock: jest.SpyInstance
|
|
||||||
let createArchivesMock: jest.SpyInstance
|
let createArchivesMock: jest.SpyInstance
|
||||||
let removeDirMock: jest.SpyInstance
|
let removeDirMock: jest.SpyInstance
|
||||||
let getConsolidatedDirectoryMock: jest.SpyInstance
|
let getConsolidatedDirectoryMock: jest.SpyInstance
|
||||||
@@ -42,7 +41,6 @@ describe('action', () => {
|
|||||||
createTempDirMock = jest
|
createTempDirMock = jest
|
||||||
.spyOn(fsHelper, 'createTempDir')
|
.spyOn(fsHelper, 'createTempDir')
|
||||||
.mockImplementation()
|
.mockImplementation()
|
||||||
isDirectoryMock = jest.spyOn(fsHelper, 'isDirectory').mockImplementation()
|
|
||||||
createArchivesMock = jest
|
createArchivesMock = jest
|
||||||
.spyOn(fsHelper, 'createArchives')
|
.spyOn(fsHelper, 'createArchives')
|
||||||
.mockImplementation()
|
.mockImplementation()
|
||||||
@@ -122,8 +120,6 @@ describe('action', () => {
|
|||||||
return ''
|
return ''
|
||||||
})
|
})
|
||||||
|
|
||||||
isDirectoryMock.mockImplementation(() => true)
|
|
||||||
|
|
||||||
getConsolidatedDirectoryMock.mockImplementation(() => {
|
getConsolidatedDirectoryMock.mockImplementation(() => {
|
||||||
throw new Error('Something went wrong')
|
throw new Error('Something went wrong')
|
||||||
})
|
})
|
||||||
@@ -154,7 +150,6 @@ describe('action', () => {
|
|||||||
return ''
|
return ''
|
||||||
})
|
})
|
||||||
|
|
||||||
// isDirectoryMock.mockImplementation(() => true)
|
|
||||||
getConsolidatedDirectoryMock.mockImplementation(() => {
|
getConsolidatedDirectoryMock.mockImplementation(() => {
|
||||||
return { consolidatedDirectory: '/tmp/test', needToCleanUpDir: false }
|
return { consolidatedDirectory: '/tmp/test', needToCleanUpDir: false }
|
||||||
})
|
})
|
||||||
@@ -210,7 +205,6 @@ async function testHappyPath(version: string, path: string): Promise<void> {
|
|||||||
return ''
|
return ''
|
||||||
})
|
})
|
||||||
|
|
||||||
isDirectoryMock.mockImplementation(() => true)
|
|
||||||
isActionRepoMock.mockImplementation(() => true)
|
isActionRepoMock.mockImplementation(() => true)
|
||||||
|
|
||||||
getConsolidatedDirectoryMock.mockImplementation(() => {
|
getConsolidatedDirectoryMock.mockImplementation(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user