From d1aa79eae817b1cf4c23f800308ecad101692ac7 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 2 Jan 2023 15:11:28 -0300 Subject: remove axios, better api --- packages/web-util/src/tests/hook.ts | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'packages/web-util/src/tests/hook.ts') diff --git a/packages/web-util/src/tests/hook.ts b/packages/web-util/src/tests/hook.ts index ddc96eb0e..fb9f979e5 100644 --- a/packages/web-util/src/tests/hook.ts +++ b/packages/web-util/src/tests/hook.ts @@ -44,31 +44,6 @@ export function createExample( }; } -// export function createExampleWithCustomContext( -// Component: FunctionalComponent, -// props: Partial | (() => Partial), -// ContextProvider: FunctionalComponent, -// contextProps: Partial, -// ): ComponentChildren { -// /** -// * FIXME: -// * This may not be useful since the example can be created with context -// * already -// */ -// const evaluatedProps = typeof props === "function" ? props() : props; -// const Render = (args: any): VNode => create(Component, args); -// const WithContext = (args: any): VNode => -// create(ContextProvider, { -// ...contextProps, -// children: [Render(args)], -// } as any); - -// return { -// component: WithContext, -// props: evaluatedProps, -// }; -// } - const isNode = typeof window === "undefined"; /** -- cgit v1.2.3