# test.govlab/context/core/stores/check.store.test.ts

> 18 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-govlab-context-core-stores-check-store-test-ts
Source text: https://banes-lab.com/source/testing/test.govlab/context/core/stores/check.store.test.ts.txt

Listed in [test.govlab/context/core/stores](https://banes-lab.com/api/source/testing/test.govlab/context/core/stores.md), after [test.govlab/context/core/stores/architecture.store.test.ts](https://banes-lab.com/source/testing/test.govlab/context/core/stores/architecture.store.test.ts.md) and before [test.govlab/context/core/stores/lexicon.store.test.ts](https://banes-lab.com/source/testing/test.govlab/context/core/stores/lexicon.store.test.ts.md).

## Contained in

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

## Source

```typescript
import { CheckTable } from "@govlab/context/core/stores/check.store.ts";
import assert from "node:assert/strict";
import { test } from "vitest";

test("a record's own check merges over its kind's, and a value that is not a check is ignored", () => {
    const table = new CheckTable();
    table.forKind("technique", { authority: "the kind rule", population: "every technique" });
    table.forRecord("technique", "unit-testing", { population: "the one technique" });
    table.forRecord("technique", "ignored", "loose");
    assert.deepEqual(table.checkOf("technique", "unit-testing"), {
        authority: "the kind rule",
        population: "the one technique",
    });
    assert.deepEqual(table.checkOf("technique", "ignored"), {
        authority: "the kind rule",
        population: "every technique",
    });
    assert.equal(table.checkOf("lens", "any"), null);
});
```
