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

chore(test): reorg the sso connector api cleanup logic (#6053)

reorg the sso connector api cleanup logic
This commit is contained in:
simeng-li 2024-06-20 10:40:42 +08:00 committed by GitHub
parent 32270d1d7e
commit 0f3dbbc4a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View file

@ -44,7 +44,12 @@ describe('manual data hook tests', () => {
});
afterEach(async () => {
await Promise.all([webHookApi.cleanUp(), userApi.cleanUp(), organizationApi.cleanUp()]);
await Promise.all([
webHookApi.cleanUp(),
userApi.cleanUp(),
organizationApi.cleanUp(),
ssoConnectorApi.cleanUp(),
]);
});
it('create roles with scopeIds should trigger Roles.Scopes.Updated event', async () => {
@ -171,8 +176,6 @@ describe('manual data hook tests', () => {
});
await assertOrganizationMembershipUpdated(organization.id);
await ssoConnectorApi.cleanUp();
});
});
});

View file

@ -28,7 +28,7 @@ describe('organization just-in-time provisioning', () => {
const ssoConnectorApi = new SsoConnectorApi();
afterEach(async () => {
await organizationApi.cleanUp();
await Promise.all([organizationApi.cleanUp(), ssoConnectorApi.cleanUp()]);
});
beforeAll(async () => {
@ -120,6 +120,5 @@ describe('organization just-in-time provisioning', () => {
);
await deleteUser(userId);
await ssoConnectorApi.cleanUp();
});
});