From 5678c54ac05ca326ac8dad0834f47fae77c61cde Mon Sep 17 00:00:00 2001 From: davwas Date: Tue, 12 Sep 2023 14:31:07 +0200 Subject: [PATCH] replace inject with injectStrict for schoolsModule --- .../AdminMigrationSection.unit.ts | 8 +++++-- .../administration/AdminMigrationSection.vue | 22 +++++++------------ .../administration/SchoolPolicy.unit.ts | 3 ++- .../organisms/administration/SchoolPolicy.vue | 19 +++------------- .../SchoolPolicyFormDialog.unit.ts | 3 ++- .../administration/SchoolPolicyFormDialog.vue | 11 +++------- .../administration/SchoolTerms.unit.ts | 3 ++- .../organisms/administration/SchoolTerms.vue | 19 +++------------- .../SchoolTermsFormDialog.unit.ts | 3 ++- .../administration/SchoolTermsFormDialog.vue | 11 +++------- src/main.ts | 3 ++- src/utils/inject/injection-keys.ts | 3 +++ 12 files changed, 39 insertions(+), 69 deletions(-) diff --git a/src/components/administration/AdminMigrationSection.unit.ts b/src/components/administration/AdminMigrationSection.unit.ts index 26a7a6b373..85ef7a01c4 100644 --- a/src/components/administration/AdminMigrationSection.unit.ts +++ b/src/components/administration/AdminMigrationSection.unit.ts @@ -1,7 +1,11 @@ import AdminMigrationSection from "@/components/administration/AdminMigrationSection.vue"; import EnvConfigModule from "@/store/env-config"; import SchoolsModule from "@/store/schools"; -import { ENV_CONFIG_MODULE_KEY, I18N_KEY } from "@/utils/inject"; +import { + ENV_CONFIG_MODULE_KEY, + I18N_KEY, + SCHOOLS_MODULE_KEY, +} from "@/utils/inject"; import { createModuleMocks } from "@/utils/mock-store-module"; import createComponentMocks from "@@/tests/test-utils/componentMocks"; import { Wrapper, mount, shallowMount } from "@vue/test-utils"; @@ -39,7 +43,7 @@ describe("AdminMigrationSection", () => { }), provide: { [I18N_KEY.valueOf()]: i18nMock, - schoolsModule, + [SCHOOLS_MODULE_KEY.valueOf()]: schoolsModule, [ENV_CONFIG_MODULE_KEY.valueOf()]: envConfigModule, }, }); diff --git a/src/components/administration/AdminMigrationSection.vue b/src/components/administration/AdminMigrationSection.vue index 9478b5bc5b..5c1ff94502 100644 --- a/src/components/administration/AdminMigrationSection.vue +++ b/src/components/administration/AdminMigrationSection.vue @@ -169,23 +169,25 @@