mirror of https://github.com/actions/toolkit
fix test expectations
parent
a59f976dd4
commit
281697ecbe
|
@ -348,6 +348,9 @@ describe('download-artifact', () => {
|
||||||
expect(response.downloadPath).toBe(fixtures.workspaceDir)
|
expect(response.downloadPath).toBe(fixtures.workspaceDir)
|
||||||
expect(mockHttpClient).toHaveBeenCalledWith(getUserAgentString())
|
expect(mockHttpClient).toHaveBeenCalledWith(getUserAgentString())
|
||||||
expect(mockListArtifacts).toHaveBeenCalledWith({
|
expect(mockListArtifacts).toHaveBeenCalledWith({
|
||||||
|
idFilter: {
|
||||||
|
value: fixtures.artifactID.toString()
|
||||||
|
},
|
||||||
...fixtures.backendIds
|
...fixtures.backendIds
|
||||||
})
|
})
|
||||||
expect(mockGetSignedArtifactURL).toHaveBeenCalledWith({
|
expect(mockGetSignedArtifactURL).toHaveBeenCalledWith({
|
||||||
|
@ -397,6 +400,9 @@ describe('download-artifact', () => {
|
||||||
expect(response.downloadPath).toBe(customPath)
|
expect(response.downloadPath).toBe(customPath)
|
||||||
expect(mockHttpClient).toHaveBeenCalledWith(getUserAgentString())
|
expect(mockHttpClient).toHaveBeenCalledWith(getUserAgentString())
|
||||||
expect(mockListArtifacts).toHaveBeenCalledWith({
|
expect(mockListArtifacts).toHaveBeenCalledWith({
|
||||||
|
idFilter: {
|
||||||
|
value: fixtures.artifactID.toString()
|
||||||
|
},
|
||||||
...fixtures.backendIds
|
...fixtures.backendIds
|
||||||
})
|
})
|
||||||
expect(mockGetSignedArtifactURL).toHaveBeenCalledWith({
|
expect(mockGetSignedArtifactURL).toHaveBeenCalledWith({
|
||||||
|
@ -450,6 +456,9 @@ describe('download-artifact', () => {
|
||||||
).rejects.toBeInstanceOf(Error)
|
).rejects.toBeInstanceOf(Error)
|
||||||
expect(mockHttpClient).toHaveBeenCalledWith(getUserAgentString())
|
expect(mockHttpClient).toHaveBeenCalledWith(getUserAgentString())
|
||||||
expect(mockListArtifacts).toHaveBeenCalledWith({
|
expect(mockListArtifacts).toHaveBeenCalledWith({
|
||||||
|
idFilter: {
|
||||||
|
value: fixtures.artifactID.toString()
|
||||||
|
},
|
||||||
...fixtures.backendIds
|
...fixtures.backendIds
|
||||||
})
|
})
|
||||||
expect(mockGetSignedArtifactURL).toHaveBeenCalledWith({
|
expect(mockGetSignedArtifactURL).toHaveBeenCalledWith({
|
||||||
|
|
Loading…
Reference in New Issue