MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / Fixture

Function Fixture

graph-ui/src/ui/refresh/refresh-feedback.test.tsx:16–20  ·  view source on GitHub ↗
({ reading }: { reading: RefreshReading })

Source from the content-addressed store, hash-verified

14const labels = { idle: 'Refresh', busy: 'Refreshing…', done: (time: string) => `Refreshed at ${time}` };
15let begin: () => void = () => {};
16function 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}
21const show = (reading: RefreshReading) => act(async () => root.render(<Fixture reading={reading} />));
22const status = () => host.querySelector('[role="status"]')?.textContent;
23

Callers

nothing calls this directly

Calls 1

useRefreshFeedbackFunction · 0.90

Tested by

no test coverage detected