From 7e7f2925347020d2e0ff7fcabb758f0df6c60726 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Mon, 22 May 2023 22:26:52 +0800 Subject: [PATCH] refactor: fix api tests --- .../src/tests/api/oidc/content-type-json.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',