1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/utility-features/app-paths/src/join-paths/join-paths.test.ts
Iku-turso 5101101da2 feat: Introduce minimal Feature for app paths
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-05-24 14:45:52 +03:00

21 lines
620 B
TypeScript

import { createContainer, DiContainer } from "@ogre-tools/injectable";
import { registerFeature } from "@k8slens/feature-core";
import { joinPathsInjectionToken } from "./join-paths.injectable";
import { appPathsFeature } from "../feature";
import path from "path";
describe("join-paths", () => {
let di: DiContainer;
let joinPaths: (...args: string[]) => string;
beforeEach(() => {
di = createContainer("irrelevant");
registerFeature(di, appPathsFeature);
joinPaths = di.inject(joinPathsInjectionToken);
});
it("is the native function", () => {
expect(joinPaths).toBe(path.join);
});
});