Skip to content

Commit

Permalink
Fixed JS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Dec 9, 2023
1 parent 7af4f5b commit eebfd90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/src/__tests__/utils/UserRole.test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import React from "react";
import {
allowedAuthoritiesForInvitation,
allowedToDeleteInvitation,
allowedToEditRole,
highestAuthority,
allowedToRenewUserRole,
AUTHORITIES,
highestAuthority,
isUserAllowed
} from "../../utils/UserRole";

Expand All @@ -27,7 +26,7 @@ test("Allowed authorities for invitation - superUser", () => {
const user = {superUser: true}

const authorities = allowedAuthoritiesForInvitation(user, []);
expect(authorities).toEqual([AUTHORITIES.SUPER_USER, AUTHORITIES.INSTITUTION_ADMIN, AUTHORITIES.MANAGER, AUTHORITIES.INVITER, AUTHORITIES.GUEST]);
expect(authorities).toEqual([AUTHORITIES.SUPER_USER, AUTHORITIES.MANAGER, AUTHORITIES.INVITER, AUTHORITIES.GUEST]);
});

test("Allowed authorities for invitation - manager", () => {
Expand Down

0 comments on commit eebfd90

Please sign in to comment.