0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

fix(connector-wechat-native): fix wechat-native target (#820)

This commit is contained in:
Darcy Ye 2022-05-13 17:34:42 +08:00 committed by GitHub
parent 58dba811d8
commit ab6c124620
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,7 @@ const readmeContentFallback = 'Please check README.md file directory.';
const configTemplateFallback = 'Please check config-template.md file directory.';
export const defaultMetadata: ConnectorMetadata = {
target: 'wechat-native',
target: 'wechat',
type: ConnectorType.Social,
platform: ConnectorPlatform.Native,
name: {

View file

@ -69,7 +69,7 @@ const wechatConnector = {
};
const wechatNativeConnector = {
id: 'wechat-native',
target: 'wechat-native',
target: 'wechat',
platform: ConnectorPlatform.Native,
enabled: false,
config: {},
@ -107,6 +107,7 @@ describe('getConnectorInstances', () => {
expect(connectorInstances[4]).toHaveProperty('connector', githubConnector);
expect(connectorInstances[5]).toHaveProperty('connector', googleConnector);
expect(connectorInstances[6]).toHaveProperty('connector', wechatConnector);
expect(connectorInstances[7]).toHaveProperty('connector', wechatNativeConnector);
});
test('should throw if any required connector does not exist in DB', async () => {