# test.build/core/validators/definition.validator.test.ts

> 10 lines of code and 0 definitions.

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

Listed in [test.build/core/validators](https://banes-lab.com/api/source/testing/test.build/core/validators.md), after [test.build/core/validators/catalog.walk.validator.test.ts](https://banes-lab.com/source/testing/test.build/core/validators/catalog.walk.validator.test.ts.md) and before [test.build/core/validators/element.validator.test.ts](https://banes-lab.com/source/testing/test.build/core/validators/element.validator.test.ts.md).

## Contained in

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

## Source

```typescript
import { describe, expect, it } from "vitest";
import { citationFindings } from "@banes-lab/build-scripts/core/validators/definition.validator.ts";

describe("citationFindings", () => {
    it("finds nothing when no route is checked, and nothing for a route whose payload the build did not write", async () => {
        await expect(citationFindings([])).resolves.toStrictEqual([]);
        await expect(
            citationFindings([{ page: "no-such-page", path: "/no-such-page", tab: null }]),
        ).resolves.toStrictEqual([]);
    });
});
```
