1
0
Fork 0

Fix broken test

pull/1857/head
Bassem Dghaidi 2024-11-14 03:10:48 -08:00 committed by GitHub
parent 9dff82c727
commit 69409b3acd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,8 @@
import {downloadCache, getCacheVersion} from '../src/internal/cacheHttpClient' import { downloadCache } from '../src/internal/cacheHttpClient'
import {CompressionMethod} from '../src/internal/constants' import { getCacheVersion } from '../src/internal/cacheUtils'
import { CompressionMethod } from '../src/internal/constants'
import * as downloadUtils from '../src/internal/downloadUtils' import * as downloadUtils from '../src/internal/downloadUtils'
import {DownloadOptions, getDownloadOptions} from '../src/options' import { DownloadOptions, getDownloadOptions } from '../src/options'
jest.mock('../src/internal/downloadUtils') jest.mock('../src/internal/downloadUtils')
@ -128,7 +129,7 @@ test('downloadCache passes options to download methods', async () => {
const archiveLocation = 'http://foo.blob.core.windows.net/bar/baz' const archiveLocation = 'http://foo.blob.core.windows.net/bar/baz'
const archivePath = '/foo/bar' const archivePath = '/foo/bar'
const options: DownloadOptions = {downloadConcurrency: 4} const options: DownloadOptions = { downloadConcurrency: 4 }
await downloadCache(archiveLocation, archivePath, options) await downloadCache(archiveLocation, archivePath, options)