@refinedev/core
Version:
Refine is a React meta-framework for building enterprise-level, data-intensive applications rapidly with support for modern UI libraries and headless integrations.
16 lines (12 loc) • 453 B
text/typescript
import { splitToSegments } from "../split-to-segments";
describe("splitToSegments", () => {
it("should split a path to segments", () => {
expect(splitToSegments("/a/b/c")).toEqual(["a", "b", "c"]);
});
it("should split a path to segments", () => {
expect(splitToSegments("a/b/c")).toEqual(["a", "b", "c"]);
});
it("should split a path to segments", () => {
expect(splitToSegments("/a/b/c/")).toEqual(["a", "b", "c"]);
});
});