MCPcopy Index your code
hub / github.com/coder/coder / Wrapper

Function Wrapper

site/src/pages/WorkspacePage/WorkspaceScheduleControls.test.tsx:14–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12import { WorkspaceScheduleControls } from "./WorkspaceScheduleControls";
13
14const Wrapper: FC = () => {
15 const { data: workspace } = useQuery(
16 workspaceByOwnerAndName(MockWorkspace.owner_name, MockWorkspace.name),
17 );
18
19 if (!workspace) {
20 return null;
21 }
22
23 return (
24 <WorkspaceScheduleControls
25 workspace={workspace}
26 template={MockTemplate}
27 canUpdateSchedule
28 />
29 );
30};
31
32const BASE_DEADLINE = dayjs().add(3, "hour");
33

Callers

nothing calls this directly

Calls 1

workspaceByOwnerAndNameFunction · 0.90

Tested by

no test coverage detected