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

> 11 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-web-configuration-constants-ontology-constants-test-ts
Source text: https://banes-lab.com/source/testing/test.web/configuration/constants/ontology.constants.test.ts.txt

Listed in [test.web/configuration/constants](https://banes-lab.com/api/source/testing/test.web/configuration/constants.md), after [test.web/configuration/constants/methodology.constants.test.ts](https://banes-lab.com/source/testing/test.web/configuration/constants/methodology.constants.test.ts.md) and before [test.web/configuration/constants/page.constants.test.ts](https://banes-lab.com/source/testing/test.web/configuration/constants/page.constants.test.ts.md).

## Contained in

- [test.web/configuration/constants](https://banes-lab.com/anatomy/testing/folder-testing-test-web-configuration-constants.md)

## Source

```typescript
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);
        }
    });
});
```
