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

fix: fix IT due to publish of mock connector (#2765)

This commit is contained in:
Darcy Ye 2022-12-29 21:47:43 +08:00 committed by GitHub
parent 2543d497f7
commit 8592d22a38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View file

@ -150,7 +150,7 @@ export const mockEmailConnectorConfig = {
],
};
export const mockStandardEmailConnectorId = 'mock-standard-email-service';
export const mockStandardEmailConnectorId = 'mock-email-service-alternative';
export const mockStandardEmailConnectorConfig = {
apiKey: 'api-key-value',
fromEmail: 'noreply@logto.test.io',

View file

@ -72,10 +72,8 @@ test('connector set-up flow', async () => {
/*
* Change to another SMS/Email connector
*/
// @darcy FIXME: should call post method directly
const { id } = await postConnector({
connectorId: mockStandardEmailConnectorId,
metadata: { target: 'mock-standard-mail' },
});
await updateConnectorConfig(id, mockStandardEmailConnectorConfig);
connectorIdMap.set(mockStandardEmailConnectorId, id);