diff --git a/webapp/src/components/table/table.test.tsx b/webapp/src/components/table/table.test.tsx index ebf7756d1..d18f0aeb4 100644 --- a/webapp/src/components/table/table.test.tsx +++ b/webapp/src/components/table/table.test.tsx @@ -591,7 +591,7 @@ describe('components/table/Table extended', () => { const dailogDeleteBtn = screen.getByRole('button', {name: 'Delete'}) userEvents.click(dailogDeleteBtn) 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"}) }) }) })