Notes/packages/highlightjs/src/syntax_highlighting.spec.ts

15 lines
396 B
TypeScript
Raw Normal View History

2025-05-18 11:26:59 +03:00
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;
}
});
});