1
0
Fork 0
mirror of https://github.com/actions/toolkit synced 2025-05-09 00:22:56 +00:00
This commit is contained in:
Bethany 2023-08-09 07:10:43 -07:00
parent deda97d5e6
commit 24da3e2d1c
2 changed files with 11 additions and 11 deletions

View file

@ -35,7 +35,7 @@ describe('artifact-http-client', () => {
msg.statusCode = 200
return {
message: msg,
readBody: () => {
readBody: async () => {
return Promise.resolve(
`{"ok": true, "signedUploadUrl": "http://localhost:8080/upload"}`
)
@ -72,7 +72,7 @@ describe('artifact-http-client', () => {
msgSucceeded.statusCode = 200
return {
message: msgSucceeded,
readBody: () => {
readBody: async () => {
return Promise.resolve(
`{"ok": true, "signedUploadUrl": "http://localhost:8080/upload"}`
)
@ -85,7 +85,7 @@ describe('artifact-http-client', () => {
msgFailed.statusMessage = 'Internal Server Error'
return {
message: msgFailed,
readBody: () => {
readBody: async () => {
return Promise.resolve(`{"ok": false}`)
}
}
@ -125,7 +125,7 @@ describe('artifact-http-client', () => {
msgFailed.statusMessage = 'Internal Server Error'
return {
message: msgFailed,
readBody: () => {
readBody: async () => {
return Promise.resolve(`{"ok": false}`)
}
}
@ -165,7 +165,7 @@ describe('artifact-http-client', () => {
msgFailed.statusMessage = 'Unauthorized'
return {
message: msgFailed,
readBody: () => {
readBody: async () => {
return Promise.resolve(`{"ok": false}`)
}
}