1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/utility-features/file-system/src/path/get-dirname.test.ts
Iku-turso d56bd1bd69 feat: Introduce Feature for file-system operations
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-05-24 14:47:12 +03:00

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);
});
});