Skip to content

Commit

Permalink
N21-1207 fixes page reload for breadcrumb
Browse files Browse the repository at this point in the history
  • Loading branch information
arnegns committed Oct 20, 2023
1 parent 30a1264 commit a3bd8d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/components/page-class-members/ClassMembers.page.unit.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { mount, MountOptions } from "@vue/test-utils";
import Vue, { ref } from "vue";
import createComponentMocks from "@@/tests/test-utils/componentMocks";
import { I18N_KEY } from "@/utils/inject";
import { I18N_KEY, NOTIFIER_MODULE_KEY } from "@/utils/inject";
import { i18nMock } from "@@/tests/test-utils";
import ClassMembersPage from "@/components/page-class-members/ClassMembers.page.vue";
import { Group, useGroupState } from "@data-group";
import { createMock, DeepMocked } from "@golevelup/ts-jest";
import { groupFactory } from "@@/tests/test-utils/factory";
import ClassMembersInfoBox from "@/components/page-class-members/ClassMembersInfoBox.vue";
import { createModuleMocks } from "@/utils/mock-store-module";
import NotifierModule from "@/store/notifier";

jest.mock("@data-group");

Expand All @@ -23,11 +25,14 @@ describe("@pages/ClassMembers.page.vue", () => {
useGroupStateMock.isLoading = ref(false);
useGroupStateMock.group = ref(group);

const notifierModule = createModuleMocks(NotifierModule);

const wrapper = mount(ClassMembersPage as MountOptions<Vue>, {
...createComponentMocks({ i18n: true }),
propsData: { ...propsData },
provide: {
[I18N_KEY.valueOf()]: i18nMock,
[NOTIFIER_MODULE_KEY.valueOf()]: notifierModule,
},
});

Expand Down
2 changes: 1 addition & 1 deletion src/components/page-class-members/ClassMembers.page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default defineComponent({
},
{
text: t("pages.administration.classes.index.title"),
href: "/administration/groups/classes/",
to: "/administration/groups/classes",
},
{
text: title.value,
Expand Down

0 comments on commit a3bd8d8

Please sign in to comment.