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

Function expectRowsToContain

src/testing/replScreenContractHarness.ts:66–75  ·  view source on GitHub ↗
(
  rows: readonly string[],
  expectedRow: string,
  label = 'visible rows',
)

Source from the content-addressed store, hash-verified

64}
65
66export function expectRowsToContain(
67 rows: readonly string[],
68 expectedRow: string,
69 label = 'visible rows',
70): void {
71 expect(
72 rows.includes(expectedRow),
73 `Expected ${JSON.stringify(rows)} to contain ${JSON.stringify(expectedRow)} for ${label}`,
74 ).toBe(true)
75}
76
77export function expectRowsToContainSubstring(
78 rows: readonly string[],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected