mirror of https://github.com/actions/toolkit
Fix tests
parent
0e707aeabc
commit
5a0405df4e
|
@ -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']
|
||||
|
|
|
@ -7,10 +7,7 @@ import {CompressionMethod} from './constants'
|
|||
|
||||
const IS_WINDOWS = process.platform === 'win32'
|
||||
|
||||
async function getTarPath(
|
||||
args: string[],
|
||||
compressionMethod: CompressionMethod
|
||||
): Promise<string> {
|
||||
async function getTarPath(args: string[]): Promise<string> {
|
||||
let tarPath = await io.which('tar', true)
|
||||
switch (process.platform) {
|
||||
case 'win32': {
|
||||
|
|
Loading…
Reference in New Issue