1
0
silverbullet/common/path.test.ts
2023-07-07 13:09:44 +02:00

12 lines
371 B
TypeScript

import { assertEquals } from "../test_deps.ts";
import { folderName, resolve } from "./path.ts";
Deno.test("Path functions", () => {
assertEquals(folderName(""), "");
assertEquals(folderName("page"), "");
assertEquals(folderName("folder/page"), "folder");
assertEquals(resolve("", "page"), "page");
assertEquals(resolve("folder", "page"), "folder/page");
});