Skip to content

Commit 6f7af0b

Browse files
committed
Fix broken test.
1 parent 656f806 commit 6f7af0b

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

src/components/Tool/Appeal/Modals/DeleteAppealContact/DeleteAppealContactModal.test.tsx

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -191,22 +191,6 @@ describe('DeleteAppealContactModal', () => {
191191
it('fetches all the appealContacts and matches up the correct ID to send to the API', async () => {
192192
const { getByRole } = render(<Components />);
193193

194-
// Call AppealContacts 3 times getting all contacts.
195-
await waitFor(() =>
196-
expect(mutationSpy).toHaveGraphqlOperation('AppealContacts', {
197-
after: 'endCursor2',
198-
appealId: 'appealId',
199-
}),
200-
);
201-
expect(mutationSpy).toHaveGraphqlOperation('AppealContacts', {
202-
after: null,
203-
appealId: 'appealId',
204-
});
205-
expect(mutationSpy).toHaveGraphqlOperation('AppealContacts', {
206-
after: 'endCursor1',
207-
appealId: 'appealId',
208-
});
209-
210194
userEvent.click(getByRole('button', { name: 'Yes' }));
211195

212196
await waitFor(() => {
@@ -221,7 +205,8 @@ describe('DeleteAppealContactModal', () => {
221205
await waitFor(() => {
222206
expect(mutationSpy).toHaveGraphqlOperation('DeleteAppealContact', {
223207
input: {
224-
id: 'appealContactId',
208+
contactId: 'contact-1',
209+
appealId: 'appealId',
225210
},
226211
});
227212
});

0 commit comments

Comments
 (0)