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:
parent
9a3aa3aae9
commit
7e7f292534
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue