# test.govlab/quality/core/matchers/context.matcher.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-quality-core-matchers-context-matcher-test-ts
Source text: https://banes-lab.com/source/testing/test.govlab/quality/core/matchers/context.matcher.test.ts.txt

Listed in [test.govlab/quality/core/matchers](https://banes-lab.com/api/source/testing/test.govlab/quality/core/matchers.md), before [test.govlab/quality/core/matchers/exclusions.matcher.test.ts](https://banes-lab.com/source/testing/test.govlab/quality/core/matchers/exclusions.matcher.test.ts.md).

## Contained in

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

## Source

```typescript
import assert from "node:assert/strict";
import { biasTokensIn } from "@govlab/quality/core/matchers/context.matcher.ts";
import { test } from "vitest";

test("biasTokensIn finds nothing in empty or punctuation-only text", () => {
    assert.deepEqual(biasTokensIn(""), []);
    assert.deepEqual(biasTokensIn("!!! ??? ..."), []);
});

test("biasTokensIn reports each stack token once, case-folded, and ignores ordinary words", () => {
    assert.deepEqual(biasTokensIn("Run NPM then npm, then Vitest"), ["npm", "vitest"]);
    assert.deepEqual(biasTokensIn("some ordinary sentence"), []);
});
```
