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

fix(connector): test

This commit is contained in:
Gao Sun 2022-05-27 19:13:33 +08:00
parent 52c745d41f
commit d327c6fdf5
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

@ -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`
);
});
});