Skip to content

Commit d43245c

Browse files
Fix frontend tests
1 parent f31b209 commit d43245c

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

frontend/src/app/menu/user-menu/user-menu.component.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const fakeUserResponse: UserResponse = {
2323
role: UserRole.VISITOR,
2424
canCreateProblem: false,
2525
canEditProblem: false,
26+
canEditKb: false
2627
};
2728

2829
const fakeAdminResponse: UserResponse = {
@@ -35,6 +36,7 @@ const fakeAdminResponse: UserResponse = {
3536
role: UserRole.MASTER_ANNOTATOR,
3637
canCreateProblem: true,
3738
canEditProblem: true,
39+
canEditKb: false
3840
};
3941

4042
describe("UserMenuComponent", () => {

frontend/src/app/user/user-settings/user-settings.component.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const fakeUser: User = {
2626
role: UserRole.VISITOR,
2727
canCreateProblem: false,
2828
canEditProblem: false,
29+
canEditKb: false,
2930
};
3031

3132
@Injectable({ providedIn: "root" })

frontend/src/app/user/utils.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ describe("User utils", () => {
4242
role: "visitor",
4343
canCreateProblem: false,
4444
canEditProblem: false,
45+
canEditKb: false,
4546
};
4647
const user = parseUserData(result);
4748
expect(user).toBeInstanceOf(User);

0 commit comments

Comments
 (0)