Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Aquaticat/Monochromatic. TypeScript and Rust monorepo: Claude Code and Pi coding-agent plugins, a m
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738/** Unit tests for Advisor rendering summaries. @module */
import { describe, expect, it,} from '@monochromatic-dev/module-test/ts';
import { firstAdvisoryLine, } from '../dist/final/node/index.mjs';
await describe({ name: firstAdvisoryLine.name, children: [ it({ name: 'skips markdown headings before body text', fn: async function testSkipsMarkdownHeadingsBeforeBodyText() { expect(firstAdvisoryLine(`## Advisor review
### Flawed assumptions
1. **Assumption** Check the active model identity.`,),).toBe('1. **Assumption** Check the active model identity.',); }, },), it({ name: 'keeps markdown heading when it is the only text', fn: async function testKeepsOnlyMarkdownHeading() { expect(firstAdvisoryLine('## Advisor review',),).toBe('## Advisor review',); }, },), ],},);