({ reading }: { reading: RefreshReading })
| 14 | const labels = { idle: 'Refresh', busy: 'Refreshing…', done: (time: string) => `Refreshed at ${time}` }; |
| 15 | let begin: () => void = () => {}; |
| 16 | function Fixture({ reading }: { reading: RefreshReading }) { |
| 17 | const refresh = useRefreshFeedback(reading, () => new Date(2026, 9, 4, 7, 3, 9).getTime()); |
| 18 | begin = refresh.begin; |
| 19 | return <RefreshControl labels={labels} feedback={refresh.feedback} onRefresh={refresh.begin} />; |
| 20 | } |
| 21 | const show = (reading: RefreshReading) => act(async () => root.render(<Fixture reading={reading} />)); |
| 22 | const status = () => host.querySelector('[role="status"]')?.textContent; |
| 23 |
nothing calls this directly
no test coverage detected