Skip to content

Commit

Permalink
Fix test?
Browse files Browse the repository at this point in the history
  • Loading branch information
undyingwraith committed Nov 9, 2023
1 parent 5f2815b commit 7b38a5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .idea/runConfigurations/Jest.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions tests/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,21 @@ import {App} from 'webui/src/App';
import {IpfsClusterContextProvider} from 'webui/src/context/IpfsClusterContext';
import {IpfsContextProvider} from 'webui/src/context/IpfsContext';
import {ToolBoxContextProvider} from 'webui/src/context/ToolBoxContext';
import {TOOLS} from 'webui/src/tools/TOOLS';

describe('App', () => {
it('renders', async () => {
const component = renderer.create(<MemoryRouter>
<SnackbarProvider>
<ToolBoxContextProvider store={new MemoryConfigurationStore()}>
<ToolBoxContextProvider store={new MemoryConfigurationStore()} tools={TOOLS}>
<IpfsContextProvider create={() => new MockIpfsClient()}>
<IpfsClusterContextProvider create={() => new MockIpfsClusterApi()}></IpfsClusterContextProvider>
<IpfsClusterContextProvider create={() => new MockIpfsClusterApi()}>
<App/>
</IpfsClusterContextProvider>
</IpfsContextProvider>
<App/>,
</ToolBoxContextProvider>
</SnackbarProvider>
</MemoryRouter>,
);
});
});
});

0 comments on commit 7b38a5a

Please sign in to comment.