From a467f6befa430faff1ee14265aeb9e3d5f4a7bbf Mon Sep 17 00:00:00 2001 From: wiggin77 Date: Tue, 10 May 2022 12:47:03 -0400 Subject: [PATCH] fix broken jest test --- webapp/src/components/table/table.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"}) }) }) })