# test.govlab/context/configuration/strings/lexicon.strings.test.ts

> 22 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-govlab-context-configuration-strings-lexicon-strings-test-ts
Source text: https://banes-lab.com/source/testing/test.govlab/context/configuration/strings/lexicon.strings.test.ts.txt

Listed in [test.govlab/context/configuration/strings](https://banes-lab.com/api/source/testing/test.govlab/context/configuration/strings.md), after [test.govlab/context/configuration/strings/layer.strings.test.ts](https://banes-lab.com/source/testing/test.govlab/context/configuration/strings/layer.strings.test.ts.md) and before [test.govlab/context/configuration/strings/ontology.report.strings.test.ts](https://banes-lab.com/source/testing/test.govlab/context/configuration/strings/ontology.report.strings.test.ts.md).

## Contained in

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

## Source

```typescript
import {
    exampleFolderMismatch,
    exampleShapeOf,
    exampleTagMismatch,
    misplacedExample,
    renameFromDeclaredTag,
    renameUncovered,
    undeclaredPlacement,
    undeclaredRefusal,
} from "@govlab/context/configuration/strings/lexicon.strings.ts";
import assert from "node:assert/strict";
import { test } from "vitest";

test("every lexicon example defect names the path, the tag or the folder it compares", () => {
    assert.ok(exampleShapeOf("planted").endsWith("planted"));
    assert.ok(misplacedExample("heap.ts").includes('"heap.ts"'));
    assert.ok(exampleTagMismatch("store", "queue").includes('"store"'));
    assert.ok(exampleFolderMismatch("clocks", "timers").includes('"timers"'));
    assert.ok(renameFromDeclaredTag("store").includes('"store"'));
    assert.ok(renameUncovered("caches", "store").includes("caches/…store"));
    assert.ok(undeclaredPlacement("placed-file").includes('"placed-file"'));
    assert.ok(undeclaredRefusal("renamed-file").includes('"renamed-file"'));
});
```
