Skip to content

Commit 8ccbb93

Browse files
committed
chore(EMS-3981): improve unit test
1 parent d1ac9f9 commit 8ccbb93

File tree

1 file changed

+3
-1
lines changed
  • src/api/custom-resolvers/queries/get-ordnance-survey-addresses

1 file changed

+3
-1
lines changed

src/api/custom-resolvers/queries/get-ordnance-survey-addresses/index.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ describe('getOrdnanceSurveyAddresses', () => {
8888
});
8989

9090
it('should throw an error', async () => {
91-
await expect(getOrdnanceSurveyAddress({}, { postcode, houseNameOrNumber })).rejects.toThrow('Getting Ordnance Survey addresses');
91+
const response = getOrdnanceSurveyAddress({}, { postcode, houseNameOrNumber });
92+
93+
await expect(response).rejects.toThrow('Getting Ordnance Survey addresses');
9294
});
9395
});
9496
});

0 commit comments

Comments
 (0)