Skip to content

Commit 4b6ee3d

Browse files
committed
removed useDispatch from import statement in ErrorContainer, and fixed ErrorMsg to pass all tests
1 parent 84c282d commit 4b6ee3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/__tests__/ErrorContainer.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ErrorContainer from '../containers/ErrorContainer';
55
// import { useStoreContext } from '../store';
66
import { configureStore } from '@reduxjs/toolkit';
77
import { mainSlice } from '../RTKslices'
8-
import { useDispatch, Provider } from 'react-redux';
8+
import { Provider } from 'react-redux';
99

1010
const customTabs = {
1111
87: {

src/app/__tests__/ErrorMsg.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('unit testing for ErrorContainer.tsx', () => {
2626
props.status.reactDevToolsInstalled = false;
2727
render(<ErrorMsg {...props} />);
2828
expect(
29-
screen.getByText('React Dev Tools isnt installed!', { exact: false }),
29+
screen.getByText('React Dev Tools is not installed!', { exact: false }), //edited this to say is not installed instead of isn't, matches the expected return string from ErrorMsg.tsx
3030
).toBeInTheDocument();
3131
props.status.reactDevToolsInstalled = true;
3232
});

0 commit comments

Comments
 (0)