[Closes #10] Reactive breadcrumbs
This commit is contained in:
parent
6d3cdb560d
commit
a1708317ec
19 changed files with 200 additions and 33 deletions
|
|
@ -166,7 +166,7 @@ describe("SidebarFooter.vue", () => {
|
|||
expect(wrapper.text()).not.toContain("Log out");
|
||||
});
|
||||
|
||||
it("calls navigateTo('/member/auth/logout') when Log out is clicked", async () => {
|
||||
it("calls navigateTo('/auth/logout') when Log out is clicked", async () => {
|
||||
const wrapper = mount(SidebarFooterComponent, {
|
||||
props: { user },
|
||||
global: {
|
||||
|
|
@ -181,10 +181,10 @@ describe("SidebarFooter.vue", () => {
|
|||
expect(logoutItem).toBeDefined();
|
||||
await logoutItem?.trigger("click");
|
||||
|
||||
expect(navigateToMock).toHaveBeenCalledWith("/member/auth/logout");
|
||||
expect(navigateToMock).toHaveBeenCalledWith("/auth/logout");
|
||||
});
|
||||
|
||||
it("calls navigateTo('/member/auth/login') when Log in is clicked", async () => {
|
||||
it("calls navigateTo('/auth/login') when Log in is clicked", async () => {
|
||||
const wrapper = mount(SidebarFooterComponent, {
|
||||
props: { user: null },
|
||||
global: {
|
||||
|
|
@ -199,7 +199,7 @@ describe("SidebarFooter.vue", () => {
|
|||
expect(loginItem).toBeDefined();
|
||||
await loginItem?.trigger("click");
|
||||
|
||||
expect(navigateToMock).toHaveBeenCalledWith("/member/auth/login");
|
||||
expect(navigateToMock).toHaveBeenCalledWith("/auth/login");
|
||||
});
|
||||
|
||||
it("computes initials correctly for single name", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue