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

> 11 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-site-reporter-test-ts
Source text: https://banes-lab.com/source/testing/test.govlab/stats/core/reporters/site.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/report.reporter.test.ts](https://banes-lab.com/source/testing/test.govlab/stats/core/reporters/report.reporter.test.ts.md) and before [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 { appSection } from "@govlab/stats/core/reporters/site.reporter.ts";

describe("appSection", () => {
    it("renders a row per page, and nothing for an absent application", () => {
        expect(appSection(INPUT.app).filter((line) => line.startsWith("| `")).length).toBeGreaterThanOrEqual(
            INPUT.app.pages.length,
        );
        expect(appSection({ ...INPUT.app, present: false })).toStrictEqual([]);
    });
});
```
