test.web/configuration/constants/ontology.constants.test.ts

test.web/configuration/constants/ontology.constants.test.ts is a file in Codebase Testing. 11 lines of code and 0 definitions.

import { describe, expect, it } from "vitest";
import { ONTOLOGY_GRAPH } from "@banes-lab/web/configuration/constants/ontology.constants.ts";
import { ONTOLOGY_TABS } from "@banes-lab/web/configuration/strings/ontology.fragment.strings.ts";

describe("ONTOLOGY_GRAPH", () => {
    it("declares every built section as narrative", () => {
        const built = ONTOLOGY_TABS.flatMap((tab) => tab.sections.map((section) => section.id));
        for (const id of built) {
            expect(ONTOLOGY_GRAPH.sections[id]?.narrative).toBe(true);
        }
    });
});