test.govlab/stats/core/reporters/taxonomy.reporter.test.ts

test.govlab/stats/core/reporters/taxonomy.reporter.test.ts is a file in Codebase Testing. 18 lines of code and 0 definitions.

import { describe, expect, it } from "vitest";
import { TAXONOMY } from "../loaders/stats.fixture.ts";
import { taxonomySection } from "@govlab/stats/core/reporters/taxonomy.reporter.ts";

describe("taxonomySection", () => {
    it("renders coverage, conformance, vocabulary, layers, depth and containers", () => {
        const text = taxonomySection(TAXONOMY).join("\n");
        for (const heading of [
            "Taxonomy coverage",
            "Taxonomy conformance",
            "Taxonomy vocabulary",
            "Layer spine",
            "Depth distribution",
            "Containers",
        ]) {
            expect(text).toContain(`### ${heading}`);
        }
    });
});