# test.build/core/converters/page.converter.test.ts

> 12 lines of code and 0 definitions.

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

Listed in [test.build/core/converters](https://banes-lab.com/api/source/testing/test.build/core/converters.md), after [test.build/core/converters/ontology.vocabulary.converter.test.ts](https://banes-lab.com/source/testing/test.build/core/converters/ontology.vocabulary.converter.test.ts.md) and before [test.build/core/converters/payload.converter.test.ts](https://banes-lab.com/source/testing/test.build/core/converters/payload.converter.test.ts.md).

## Contained in

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

## Source

```typescript
import { DISCOVERY, SOURCE } from "./site.fixture.ts";
import { describe, expect, it } from "vitest";
import { routesOf } from "@banes-lab/build-scripts/core/converters/page.converter.ts";

describe("routesOf", () => {
    it("lists every page at its own path, then every tab route no page already serves", () => {
        expect(routesOf(SOURCE, DISCOVERY)).toStrictEqual([
            { page: "home", path: "/" },
            { page: "terms", path: "/terms" },
            { page: "terms", path: "/terms/guide" },
        ]);
    });
});
```
