mirror of
https://github.com/actions/toolkit
synced 2025-05-09 00:22:56 +00:00
lint
This commit is contained in:
parent
deda97d5e6
commit
24da3e2d1c
2 changed files with 11 additions and 11 deletions
|
@ -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}`)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue