fix(highlighting): theme IDs contain spaces

This commit is contained in:
Elian Doran
2025-05-19 15:01:35 +03:00
parent 6b919b4f99
commit 1e3c2e4214
2 changed files with 57 additions and 47 deletions

View File

@@ -0,0 +1,10 @@
import themeDefinitions from "./themes.js";
import { describe, expect, it } from "vitest";
describe("Themes", () => {
it("all IDs don't contain spaces", () => {
for (const id of Object.keys(themeDefinitions)) {
expect(id).not.toMatch(/\s/);
}
});
});