Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
uidp committed Sep 18, 2024
1 parent 713fa65 commit 9e2132f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/modules/ui/layout/sidebar/SidebarItem.unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe("@ui-layout/SidebarItem", () => {
expect(wrapper.findComponent(".v-icon").exists()).toBe(false);
});

it("should highlight correct sidebar item", () => {
it("should highlight item when selection is active", () => {
const { wrapper } = setup({
icon: "mdiOpen",
title: "title",
Expand All @@ -68,15 +68,4 @@ describe("@ui-layout/SidebarItem", () => {

expect(wrapper.classes()).toContain("v-list-item--active");
});

it("should not highlight wrong sidebar item", () => {
const { wrapper } = setup({
icon: "mdiOpen",
title: "title",
testId: "testId",
to: "/administration/rooms/new",
});

expect(wrapper.classes()).not.toContain("v-list-item--active");
});
});

0 comments on commit 9e2132f

Please sign in to comment.