From d327c6fdf5f4a3fbc68618f46df7ac213d77aed5 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Fri, 27 May 2022 19:13:33 +0800 Subject: [PATCH] fix(connector): test --- packages/connector-apple/src/index.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/connector-apple/src/index.test.ts b/packages/connector-apple/src/index.test.ts index 07958d618..10b850c7e 100644 --- a/packages/connector-apple/src/index.test.ts +++ b/packages/connector-apple/src/index.test.ts @@ -2,7 +2,7 @@ import { GetConnectorConfig } from '@logto/connector-types'; import nock from 'nock'; import AppleConnector from '.'; -import { defaultMetadata } from './constant'; +import { authorizationEndpoint } from './constant'; import { mockedConfig } from './mock'; import { AppleConfig } from './types'; @@ -25,7 +25,7 @@ describe('getAuthorizationUri', () => { 'http://localhost:3000/callback' ); expect(authorizationUri).toEqual( - `${defaultMetadata.target}://?client_id=%3Cclient-id%3E&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fcallback&scope=&state=some_state` + `${authorizationEndpoint}?client_id=%3Cclient-id%3E&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fcallback&scope=&state=some_state&response_type=code+id_token&response_mode=fragment` ); }); });