A note-taking app inspired by nb
at main 18 lines 430 B view raw
1import { assertEquals } from "@std/assert"; 2import { inferredType } from "./entry.ts"; 3 4Deno.test("test icon inferrence", () => { 5 const targets = { 6 ".bookmark.md": "bookmark", 7 ".todo.md": "todo", 8 "flkdjslkdJSD": "note", 9 ".md": "note", 10 }; 11 for (const [key, val] of Object.entries(targets)) { 12 assertEquals( 13 inferredType(key), 14 val, 15 `Terminal ${key} should have type ${val}`, 16 ); 17 } 18});