17 lines
556 B
TypeScript
17 lines
556 B
TypeScript
import { describe, it, expect } from "vitest";
|
|
import manifest from "./captures.manifest.json";
|
|
import { validateManifest, type Manifest } from "./captures";
|
|
|
|
describe("captures manifest", () => {
|
|
it("passes validation", () => {
|
|
expect(validateManifest(manifest as Manifest)).toEqual([]);
|
|
});
|
|
it("has unique ids", () => {
|
|
const ids = (manifest as Manifest).captures.map((c) => c.id);
|
|
expect(new Set(ids).size).toBe(ids.length);
|
|
});
|
|
it("captures in dark theme", () => {
|
|
expect((manifest as Manifest).theme).toBe("dark");
|
|
});
|
|
});
|