Skip to content

Commit

Permalink
wrap axios promise
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Jun 23, 2023
1 parent 839b877 commit 2ee80fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Cypress.Commands.add('uploadFile', (fileName, mimeType, target) => {
return cy.wrap(body.token)
})
.then(requesttoken => {
return axios.put(`${url}/remote.php/webdav/${fileName}`, file, {
return cy.wrap(axios.put(`${url}/remote.php/webdav/${fileName}`, file, {
headers: {
requesttoken,
'Content-Type': mimeType,
Expand All @@ -81,7 +81,7 @@ Cypress.Commands.add('uploadFile', (fileName, mimeType, target) => {
)
return fileId
})
})
}))
})
})

Expand Down

0 comments on commit 2ee80fe

Please sign in to comment.