mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 14:25:51 +01: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;
|
||
|
|
}
|
||
|
|
});
|
||
|
|
});
|