mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
21 lines
620 B
TypeScript
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);
|
|
});
|
|
});
|