Skip to content

Commit

Permalink
fix: integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
charIeszhao committed Apr 15, 2024
1 parent 0b9893c commit 0d47ca9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/routes/organization/index.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
}
}
},
"/api/organizations/${id}/users/{userId}/scopes": {
"/api/organizations/{id}/users/{userId}/scopes": {
"get": {
"summary": "Get scopes for a user in an organization tailored by the organization roles",
"description": "Get scopes assigned to a user in the specified organization tailored by the organization roles. The scopes are derived from the organization roles assigned to the user.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0d47ca9

Please sign in to comment.