Skip to content

Commit

Permalink
✅ removeAdvert checks operation status explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarsson committed Aug 14, 2023
1 parent 2e94007 commit 15e88d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adverts/e2e-test/remove-advert.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ describe('removeAdvert', () => {
// eslint-disable-next-line no-param-reassign
adverts['remove-advert-test-1'] = mockAdvert

await gqlRequest(removeAdvertMutation, {
const {body: {data}} = await gqlRequest(removeAdvertMutation, {
id: 'remove-advert-test-1',
})
expect(data?.removeAdvert?.status?.code).toBe('EHAFFA_UNAUTHORIZED')

T('advert has not been removed', () =>
expect(adverts['remove-advert-test-1']).toBeDefined()
Expand Down

0 comments on commit 15e88d5

Please sign in to comment.