mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-04 12:53:15 +08:00
Fix tests
This commit is contained in:
2
packages/cache/__tests__/tar.test.ts
vendored
2
packages/cache/__tests__/tar.test.ts
vendored
@@ -106,7 +106,7 @@ test('gzip extract GNU tar on windows with GNUtar in path', async () => {
|
||||
// GNU tar present in path but not at default location
|
||||
const isGnuMock = jest
|
||||
.spyOn(utils, 'getGnuTarPathOnWindows')
|
||||
.mockReturnValue(Promise.resolve('C:\\Program Files\\gnutar\\tar.exe'))
|
||||
.mockReturnValue(Promise.resolve('tar'))
|
||||
const execMock = jest.spyOn(exec, 'exec')
|
||||
const archivePath = `${process.env['windir']}\\fakepath\\cache.tar`
|
||||
const workspace = process.env['GITHUB_WORKSPACE']
|
||||
|
||||
Reference in New Issue
Block a user