Skip to content

Commit

Permalink
Change the test to check the student dashboard tab routes instead of …
Browse files Browse the repository at this point in the history
…accessing the tab state directly.
  • Loading branch information
wolfganggreschus committed Feb 27, 2025
1 parent 61a3544 commit 303d16e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/templates/TasksDashboardMain.unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,8 @@ describe("@/components/templates/TasksDashboardMain", () => {
});

it("should open tab from store state", async () => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-ignore
expect(wrapper.vm.tab).toStrictEqual("open");
const studentDashboard = wrapper.findComponent(TasksDashboardStudent);
expect(studentDashboard.props("tabRoutes")).toContain("open");
});

it("should hide substituteFilter", async () => {
Expand Down

0 comments on commit 303d16e

Please sign in to comment.