Fix tests

This commit is contained in:
Sampark Sharma
2022-11-08 06:43:28 +00:00
committed by GitHub
parent 0c58e4113e
commit 62a66a8ce9
3 changed files with 6 additions and 3 deletions

View File

@@ -92,9 +92,9 @@ test('gzip extract tar', async () => {
)
})
test('gzip extract GNU tar on windows', async () => {
test('gzip extract GNU tar on windows with GNUtar in path', async () => {
if (IS_WINDOWS) {
jest.spyOn(fs, 'existsSync').mockReturnValueOnce(false)
jest.spyOn(fs, 'existsSync').mockReturnValue(false)
const isGnuMock = jest
.spyOn(utils, 'isGnuTarInstalled')