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>
16 lines
456 B
TypeScript
16 lines
456 B
TypeScript
import { createContainer } from "@ogre-tools/injectable";
|
|
import path from "path";
|
|
import getDirnameOfPathInjectable from "./get-dirname.injectable";
|
|
|
|
describe("get-dirname", () => {
|
|
it("is exactly dirname from path module", () => {
|
|
const di = createContainer("irrelevant");
|
|
|
|
di.register(getDirnameOfPathInjectable);
|
|
|
|
const getDirnameOfPath = di.inject(getDirnameOfPathInjectable);
|
|
|
|
expect(getDirnameOfPath).toBe(path.dirname);
|
|
});
|
|
});
|