( rows: readonly string[], expectedRow: string, label = 'visible rows', )
| 64 | } |
| 65 | |
| 66 | export 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 | |
| 77 | export function expectRowsToContainSubstring( |
| 78 | rows: readonly string[], |
nothing calls this directly
no outgoing calls
no test coverage detected