mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix verify-that-all-routes-have-route-component.test.ts
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
1b1332faf4
commit
4889a659a8
@ -9,15 +9,17 @@ import { filter, map, matches } from "lodash/fp";
|
||||
import clusterStoreInjectable from "../cluster-store/cluster-store.injectable";
|
||||
import type { ClusterStore } from "../cluster-store/cluster-store";
|
||||
import { pipeline } from "@ogre-tools/fp";
|
||||
import createStoresAndApisInjectable from "../../renderer/create-stores-apis.injectable";
|
||||
|
||||
describe("verify-that-all-routes-have-component", () => {
|
||||
it("verify that routes have route component", async () => {
|
||||
const rendererDi = getDiForUnitTesting({ doGeneralOverrides: true });
|
||||
|
||||
rendererDi.override(
|
||||
clusterStoreInjectable,
|
||||
() => ({ getById: (): null => null } as unknown as ClusterStore),
|
||||
);
|
||||
rendererDi.override(createStoresAndApisInjectable, () => true);
|
||||
|
||||
rendererDi.override(clusterStoreInjectable, () => ({
|
||||
getById: () => null,
|
||||
} as unknown as ClusterStore));
|
||||
|
||||
await rendererDi.runSetups();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user