mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 05:46:10 +01:00
fix(highlighting): theme IDs contain spaces
This commit is contained in:
10
packages/highlightjs/src/themes.spec.ts
Normal file
10
packages/highlightjs/src/themes.spec.ts
Normal 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/);
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user