0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

refactor: fix api tests

This commit is contained in:
Gao Sun 2023-05-22 22:26:52 +08:00
parent 9a3aa3aae9
commit 7e7f292534
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

@ -21,7 +21,7 @@ describe('content-type: application/json compatibility', () => {
}),
(error) => {
if (!(error instanceof HTTPError)) {
return fail('Error is not a HTTPError instance.');
throw new TypeError('Error is not a HTTPError instance.');
}
expect(JSON.parse(String(error.response.body))).toHaveProperty(
'error_description',