MCPcopy Create free account
hub / github.com/Noumena-Network/code / normalizeVisibleSurfaceText

Function normalizeVisibleSurfaceText

src/testing/textSnapshotHarness.ts:16–22  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

14}
15
16export function normalizeVisibleSurfaceText(text: string): string {
17 return normalizeSnapshotText(text)
18 .split('\n')
19 .map(row => row.replace(/\s+$/g, ''))
20 .join('\n')
21 .replace(/\n+$/g, '')
22}
23
24export function formatTextSnapshot(spec: Omit<TextSnapshotSpec, 'snapshotFileUrl'>): string {
25 const normalizedValue = normalizeSnapshotText(spec.value)

Callers 1

snapshotPaneFunction · 0.85

Calls 1

normalizeSnapshotTextFunction · 0.85

Tested by 1

snapshotPaneFunction · 0.68