# test.content/core/normalizers/sentence.normalizer.test.ts

> 10 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-content-core-normalizers-sentence-normalizer-test-ts
Source text: https://banes-lab.com/source/testing/test.content/core/normalizers/sentence.normalizer.test.ts.txt

Listed in [test.content/core/normalizers](https://banes-lab.com/api/source/testing/test.content/core/normalizers.md), after [test.content/core/normalizers/link.normalizer.test.ts](https://banes-lab.com/source/testing/test.content/core/normalizers/link.normalizer.test.ts.md) and before [test.content/core/normalizers/word.normalizer.test.ts](https://banes-lab.com/source/testing/test.content/core/normalizers/word.normalizer.test.ts.md).

## Contained in

- [test.content/core/normalizers](https://banes-lab.com/anatomy/testing/folder-testing-test-content-core-normalizers.md)

## Source

```typescript
import { describe, expect, it } from "vitest";
import { isLabeledItem } from "@banes-lab/content/core/normalizers/sentence.normalizer.ts";

describe("isLabeledItem", () => {
    it("accepts a bold label followed by a separator and refuses the rest", () => {
        expect(isLabeledItem("**Label** — explanation")).toBe(true);
        expect(isLabeledItem("**Label**: explanation")).toBe(true);
        expect(isLabeledItem("**Bold sentence** in prose")).toBe(false);
        expect(isLabeledItem("plain text")).toBe(false);
    });
});
```
