mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 14:25:51 +01:00
feat(highlightjs): add test
This commit is contained in:
14
packages/highlightjs/src/syntax_highlighting.spec.ts
Normal file
14
packages/highlightjs/src/syntax_highlighting.spec.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user