Skip to content

Commit

Permalink
remove test of a computed property
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfganggreschus committed Feb 27, 2025
1 parent c24a8ae commit 61a3544
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/components/templates/TasksDashboardMain.unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ describe("@/components/templates/TasksDashboardMain", () => {
const validRoles = ["student", "teacher"];
const invalidRoles = ["janitor", "principal"];

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const { validator } = TasksDashboardMain.props.role;

validRoles.forEach((role) => {
Expand Down Expand Up @@ -129,15 +127,6 @@ describe("@/components/templates/TasksDashboardMain", () => {
});
});

it("should set isStudent true", () => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-ignore
expect(wrapper.vm.isStudent).toBe(true);
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-ignore
expect(wrapper.vm.isTeacher).toBe(false);
});

it("should render student's tasks dashboard", () => {
const studentDashboard = wrapper.findComponent(TasksDashboardStudent);
expect(studentDashboard.exists()).toBe(true);
Expand Down

0 comments on commit 61a3544

Please sign in to comment.