1
0
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:
wiggin77 2022-05-10 12:47:03 -04:00
parent a840c440f5
commit a467f6befa

View File

@ -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"})
}) })
}) })
}) })