Skip to content

Commit

Permalink
Update src/adapters/tests/leasing-adapter/offers.test.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Lundqvist <[email protected]>
  • Loading branch information
mittistormen and momentiris authored Nov 6, 2024
1 parent e36dee4 commit 02da016
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/adapters/tests/leasing-adapter/offers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ describe(leasingAdapter.getOffersForContact, () => {

const res = await leasingAdapter.getOffersForContact('P174965')

expect(res.ok).toBe(false)
if (!res.ok) expect(res.err).toBe('not-found')
expect(res).toEqual({ ok: false, err: 'not-found' })
})

it('should return an empty array if no offers are found', async () => {
Expand Down

0 comments on commit 02da016

Please sign in to comment.