# test.govlab/stats/core/reporters/validation.reporter.test.ts

> 17 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-govlab-stats-core-reporters-validation-reporter-test-ts
Source text: https://banes-lab.com/source/testing/test.govlab/stats/core/reporters/validation.reporter.test.ts.txt

Listed in [test.govlab/stats/core/reporters](https://banes-lab.com/api/source/testing/test.govlab/stats/core/reporters.md), after [test.govlab/stats/core/reporters/taxonomy.reporter.test.ts](https://banes-lab.com/source/testing/test.govlab/stats/core/reporters/taxonomy.reporter.test.ts.md).

## Contained in

- [test.govlab/stats/core/reporters](https://banes-lab.com/anatomy/testing/folder-testing-test-govlab-stats-core-reporters.md)

## Source

```typescript
import { describe, expect, it } from "vitest";
import { INPUT } from "../loaders/stats.fixture.ts";
import { verificationSubsections } from "@govlab/stats/core/reporters/validation.reporter.ts";

describe("verificationSubsections", () => {
    it("renders the gate, the enforcement and the type-check, and says so when no report was recorded", () => {
        const text = verificationSubsections(INPUT.verify, INPUT.activeRules, INPUT.typescript).join("\n");
        expect(text).toContain("### Gate");
        expect(text).toContain("### Enforcement");
        expect(text).toContain("### Type-check");
        const absent = verificationSubsections(
            { ...INPUT.verify, available: false },
            INPUT.activeRules,
            INPUT.typescript,
        );
        expect(absent.join("\n")).toContain("not recorded");
    });
});
```
