# test.web/domain/converters/structure.converter.test.ts

> 14 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-web-domain-converters-structure-converter-test-ts
Source text: https://banes-lab.com/source/testing/test.web/domain/converters/structure.converter.test.ts.txt

Listed in [test.web/domain/converters](https://banes-lab.com/api/source/testing/test.web/domain/converters.md), after [test.web/domain/converters/search.converter.test.ts](https://banes-lab.com/source/testing/test.web/domain/converters/search.converter.test.ts.md) and before [test.web/domain/converters/surface.converter.test.ts](https://banes-lab.com/source/testing/test.web/domain/converters/surface.converter.test.ts.md).

## Contained in

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

## Source

```typescript
import { EDGE_SECTION_ID, MAP_SECTION_ID, UNCOVERED_SECTION_ID } from "@banes-lab/web/core/ids/ontology.ids.ts";
import { describe, expect, it } from "vitest";
import { ONTOLOGY } from "@banes-lab/web/core/generated/ontology.generated.ts";
import { structureSections } from "@banes-lab/web/domain/converters/structure.converter.ts";

describe("structureSections", () => {
    it("renders the uncovered cells, the maps and the edges in that order", () => {
        const sections = structureSections(ONTOLOGY.reason);
        expect(sections.map((section) => section.id)).toStrictEqual([
            UNCOVERED_SECTION_ID,
            MAP_SECTION_ID,
            EDGE_SECTION_ID,
        ]);
    });
});
```
