mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
11 lines
337 B
TypeScript
11 lines
337 B
TypeScript
import { findParent } from "./FileTree";
|
|
|
|
describe("find parent tests", () => {
|
|
it("should return the parent path", () => {
|
|
expect(findParent("src/main/js/")).toBe("src/main");
|
|
expect(findParent("src/main/js")).toBe("src/main");
|
|
expect(findParent("src/main")).toBe("src");
|
|
expect(findParent("src")).toBe("");
|
|
});
|
|
});
|