mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 07:34:42 -04:00
Add mock for upload response
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
5933fb801d
commit
ed9f4aefab
4 changed files with 14 additions and 11 deletions
|
@ -31,7 +31,7 @@ describe('File upload', () => {
|
|||
beforeEach(() => {
|
||||
cy.intercept({
|
||||
method: 'POST',
|
||||
url: '/mock-backend/api/private/media/upload'
|
||||
url: '/mock-backend/api/private/media/upload-post'
|
||||
}, {
|
||||
statusCode: 201,
|
||||
body: {
|
||||
|
@ -86,7 +86,7 @@ describe('File upload', () => {
|
|||
it('upload fails', () => {
|
||||
cy.intercept({
|
||||
method: 'POST',
|
||||
url: '/mock-backend/api/private/media/upload'
|
||||
url: '/mock-backend/api/private/media/upload-post'
|
||||
}, {
|
||||
statusCode: 400
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue