mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix other tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
992560357f
commit
9af1fee203
@ -16,15 +16,14 @@ import type { CatalogEntityStore } from "./catalog-entity-store/catalog-entity.s
|
|||||||
import { getDiForUnitTesting } from "../../getDiForUnitTesting";
|
import { getDiForUnitTesting } from "../../getDiForUnitTesting";
|
||||||
import type { DependencyInjectionContainer } from "@ogre-tools/injectable";
|
import type { DependencyInjectionContainer } from "@ogre-tools/injectable";
|
||||||
import catalogEntityStoreInjectable from "./catalog-entity-store/catalog-entity-store.injectable";
|
import catalogEntityStoreInjectable from "./catalog-entity-store/catalog-entity-store.injectable";
|
||||||
import catalogEntityRegistryInjectable
|
import catalogEntityRegistryInjectable from "../../api/catalog-entity-registry/catalog-entity-registry.injectable";
|
||||||
from "../../api/catalog-entity-registry/catalog-entity-registry.injectable";
|
|
||||||
import type { DiRender } from "../test-utils/renderFor";
|
import type { DiRender } from "../test-utils/renderFor";
|
||||||
import { renderFor } from "../test-utils/renderFor";
|
import { renderFor } from "../test-utils/renderFor";
|
||||||
import { ThemeStore } from "../../theme.store";
|
import { ThemeStore } from "../../theme.store";
|
||||||
import { UserStore } from "../../../common/user-store";
|
import { UserStore } from "../../../common/user-store";
|
||||||
import mockFs from "mock-fs";
|
import mockFs from "mock-fs";
|
||||||
import directoryForUserDataInjectable
|
import directoryForUserDataInjectable from "../../../common/app-paths/directory-for-user-data/directory-for-user-data.injectable";
|
||||||
from "../../../common/app-paths/directory-for-user-data/directory-for-user-data.injectable";
|
import { noop } from "../../utils";
|
||||||
|
|
||||||
mockWindow();
|
mockWindow();
|
||||||
jest.mock("electron", () => ({
|
jest.mock("electron", () => ({
|
||||||
@ -115,9 +114,10 @@ describe("<Catalog />", () => {
|
|||||||
|
|
||||||
render = renderFor(di);
|
render = renderFor(di);
|
||||||
|
|
||||||
const catalogCategoryRegistry = new CatalogCategoryRegistry();
|
catalogEntityRegistry = new CatalogEntityRegistry({
|
||||||
|
categoryRegistry: new CatalogCategoryRegistry(),
|
||||||
catalogEntityRegistry = new CatalogEntityRegistry(catalogCategoryRegistry);
|
initSync: noop,
|
||||||
|
});
|
||||||
|
|
||||||
di.override(catalogEntityRegistryInjectable, () => catalogEntityRegistry);
|
di.override(catalogEntityRegistryInjectable, () => catalogEntityRegistry);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user