testing ci

This commit is contained in:
Vallie Joseph committed 2023-12-21 20:22:20 +00:00
1 parent d9d531246e
commit 9136acffe8
1 file changed
+8 -16
+8 -16
View File
@@ -295,13 +295,14 @@ describe('download-artifact', () => {
} }
) )
await downloadArtifactPublic( await expect(
fixtures.artifactID, downloadArtifactPublic(
fixtures.repositoryOwner, fixtures.artifactID,
fixtures.repositoryName, fixtures.repositoryOwner,
fixtures.token fixtures.repositoryName,
) fixtures.token
)
).rejects.toBeInstanceOf(Error)
// jest.runAllTimers() // jest.runAllTimers()
expect(downloadArtifactMock).toHaveBeenCalledWith({ expect(downloadArtifactMock).toHaveBeenCalledWith({
@@ -313,15 +314,6 @@ describe('download-artifact', () => {
redirect: 'manual' redirect: 'manual'
} }
}) })
// expect(mockHttpClient).toHaveBeenCalledWith(getUserAgentString())
await expect(
downloadArtifactPublic(
fixtures.artifactID,
fixtures.repositoryOwner,
fixtures.repositoryName,
fixtures.token
)
).rejects.toBeInstanceOf(Error)
}, 40000) }, 40000)
it('should fail if blob storage response is non-200 after 5 retries', async () => { it('should fail if blob storage response is non-200 after 5 retries', async () => {
const downloadArtifactMock = github.getOctokit(fixtures.token).rest const downloadArtifactMock = github.getOctokit(fixtures.token).rest