Fix tests

This commit is contained in:
Sampark Sharma authored and GitHub committed 2022-11-08 06:43:28 +00:00
1 parent 802b275be8
commit cc292001eb
3 files changed
+6 -3

No files matched your search

+2 -2
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')