diff options
author | Sebastian <sebasjm@gmail.com> | 2022-11-04 11:48:39 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-11-04 11:56:06 -0300 |
commit | 9a9629249e1ec9f2fc5a4147db6d649a3cc17b40 (patch) | |
tree | 8502ea78b0be9ffcf696d9a835388038f3223f5c /packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx | |
parent | a69e559890d888d10739c8e29549ff37b788743a (diff) |
fix some test style and SWRConfig type compilation
Diffstat (limited to 'packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx b/packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx index 1cf9220d6..655081711 100644 --- a/packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx +++ b/packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx @@ -28,6 +28,7 @@ interface TestingContextProps { children?: ComponentChildren; } export function TestingContext({ children }: TestingContextProps): VNode { + const SC: any = SWRConfig return ( <BackendContextProvider defaultUrl="http://backend" initialToken="token"> <InstanceContextProvider @@ -38,7 +39,7 @@ export function TestingContext({ children }: TestingContextProps): VNode { changeToken: () => null, }} > - <SWRConfig value={{ provider: () => new Map() }}>{children}</SWRConfig> + <SC value={{ provider: () => new Map() }}>{children}</SC> </InstanceContextProvider> </BackendContextProvider> ); |