Function
searchData
(
rendered: ReturnType<typeof renderExplorer>,
term: string,
)
Source from the content-addressed store, hash-verified
| 57 | } |
| 58 | |
| 59 | function searchData( |
| 60 | rendered: ReturnType<typeof renderExplorer>, |
| 61 | term: string, |
| 62 | ) { |
| 63 | fireEvent.input(rendered.getByRole('searchbox', { name: 'Search data' }), { |
| 64 | target: { value: term }, |
| 65 | }) |
| 66 | vi.advanceTimersByTime(150) |
| 67 | } |
| 68 | |
| 69 | function highlightedText() { |
| 70 | return [...CSS.highlights.values()].flatMap((highlight) => |
Tested by
no test coverage detected