mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
15 lines
396 B
TypeScript
15 lines
396 B
TypeScript
![]() |
import { describe, it } from "vitest";
|
||
|
import definitions from "./syntax_highlighting.js";
|
||
|
|
||
|
describe("Syntax highlighting definitions", () => {
|
||
|
it("every entry is readable", async () => {
|
||
|
for (const [ mime, mapping ] of Object.entries(definitions)) {
|
||
|
if (mapping === null) {
|
||
|
continue;
|
||
|
}
|
||
|
|
||
|
await mapping.loader;
|
||
|
}
|
||
|
});
|
||
|
});
|