1
0
silverbullet/common/path.test.ts

12 lines
371 B
TypeScript
Raw Normal View History

2023-07-07 11:09:44 +00:00
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");
});