Function
searchData
(
rendered: ReturnType<typeof renderExplorer>,
term: string,
)
Source from the content-addressed store, hash-verified
| 67 | } |
| 68 | |
| 69 | function searchData( |
| 70 | rendered: ReturnType<typeof renderExplorer>, |
| 71 | term: string, |
| 72 | ) { |
| 73 | fireEvent.input(rendered.getByRole('searchbox', { name: 'Search data' }), { |
| 74 | target: { value: term }, |
| 75 | }) |
| 76 | vi.advanceTimersByTime(150) |
| 77 | } |
| 78 | |
| 79 | function highlightedText() { |
| 80 | return [...CSS.highlights.values()].flatMap((highlight) => |
Tested by
no test coverage detected