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:
parent
58dba811d8
commit
ab6c124620
2 changed files with 3 additions and 2 deletions
|
@ -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: {
|
||||
|
|
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in a new issue