Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
undyingwraith committed Nov 7, 2023
1 parent eab1298 commit 0797798
Show file tree
Hide file tree
Showing 5 changed files with 30,139 additions and 29,862 deletions.
1 change: 1 addition & 0 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"jest-environment-jsdom": "^29.2.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.18.0",
"react-test-renderer": "^18.2.0",
"testing": "workspace:^",
"ts-jest": "^29.0.3",
Expand Down
9 changes: 6 additions & 3 deletions tests/tools/Dashboard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ import renderer from 'react-test-renderer';
import React from 'react';
import {Dashboard} from 'webui/src/tools/Dashboard';
import {ToolBoxContextProvider} from 'webui/src/context/ToolBoxContext';
import {MemoryRouter} from 'react-router-dom'

describe('Dashboard', () => {
it('renders', () => {
const component = renderer.create(<ToolBoxContextProvider>
<Dashboard/>,
</ToolBoxContextProvider>
const component = renderer.create(<MemoryRouter>
<ToolBoxContextProvider>
<Dashboard/>,
</ToolBoxContextProvider>
</MemoryRouter>
);

expect(component.toTree()).toMatchSnapshot();
Expand Down
Loading

0 comments on commit 0797798

Please sign in to comment.