mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-08 15:06:08 +02:00
fix broken jest test
This commit is contained in:
parent
a840c440f5
commit
a467f6befa
@ -591,7 +591,7 @@ describe('components/table/Table extended', () => {
|
|||||||
const dailogDeleteBtn = screen.getByRole('button', {name: 'Delete'})
|
const dailogDeleteBtn = screen.getByRole('button', {name: 'Delete'})
|
||||||
userEvents.click(dailogDeleteBtn)
|
userEvents.click(dailogDeleteBtn)
|
||||||
await waitFor(() => {
|
await waitFor(() => {
|
||||||
expect(global.fetch).toHaveBeenCalledWith(`http://localhost/api/v1/boards/${board.id}/blocks/${card1.id}`, {"headers": {"Accept": "application/json", "Authorization": "", "Content-Type": "application/json", "X-Requested-With": "XMLHttpRequest"}, "method": "DELETE"})
|
expect(global.fetch).toHaveBeenCalledWith(`http://localhost/api/v2/boards/${board.id}/blocks/${card1.id}`, {"headers": {"Accept": "application/json", "Authorization": "", "Content-Type": "application/json", "X-Requested-With": "XMLHttpRequest"}, "method": "DELETE"})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user