Skip to content

Commit

Permalink
added function to backend mock
Browse files Browse the repository at this point in the history
  • Loading branch information
andracc committed Nov 12, 2024
1 parent 4854d28 commit 5baee3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ProjectSettings/tests/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jest.mock("backend", () => ({
getAllUsers: () => Promise.resolve([]),
getCurrentPermissions: () => mockGetCurrentPermissions(),
getUserRoles: () => Promise.resolve([]),
isFrontierNonempty: () => Promise.resolve(false),
}));
jest.mock("components/Project/ProjectActions");
// Mock "i18n", else `thrown: "Error: Error: connect ECONNREFUSED ::1:80 [...]`
Expand Down

0 comments on commit 5baee3b

Please sign in to comment.