diff --git a/packages/integration-tests/src/tests/api/oidc/content-type-json.test.ts b/packages/integration-tests/src/tests/api/oidc/content-type-json.test.ts index 652a3e049..2ba97a338 100644 --- a/packages/integration-tests/src/tests/api/oidc/content-type-json.test.ts +++ b/packages/integration-tests/src/tests/api/oidc/content-type-json.test.ts @@ -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',