From 9783d53a3ec8c7e1c659ecb272c177372fe02649 Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Fri, 12 Apr 2024 23:48:15 +0800 Subject: [PATCH] fix: integration test --- .../src/tests/api/organization/organization-user.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/integration-tests/src/tests/api/organization/organization-user.test.ts b/packages/integration-tests/src/tests/api/organization/organization-user.test.ts index 8a0b3bb99ecb..39036c4a5a2a 100644 --- a/packages/integration-tests/src/tests/api/organization/organization-user.test.ts +++ b/packages/integration-tests/src/tests/api/organization/organization-user.test.ts @@ -275,7 +275,7 @@ describe('organization user APIs', () => { // Assign role1 to user await organizationApi.addUserRoles(organization.id, user.id, [role1.id]); const scopes = await organizationApi.getUserOrganizationScopes(organization.id, user.id); - expect(scopes).toEqual([scope1.name, scope2.name]); + expect(scopes).toMatchObject([scope1.name, scope2.name]); // Remove role1 and assign role2 to user await organizationApi.deleteUserRole(organization.id, user.id, role1.id);