patch failing frontend tests
This commit is contained in:
parent
aa2c9084e5
commit
c533c7837c
2 changed files with 2 additions and 4 deletions
|
@ -8,9 +8,7 @@
|
||||||
"node-sass": "^4.13.0",
|
"node-sass": "^4.13.0",
|
||||||
"react-router-dom": "^5.1.2",
|
"react-router-dom": "^5.1.2",
|
||||||
"react-scripts": "^3.4.0",
|
"react-scripts": "^3.4.0",
|
||||||
"socket.io-client": "^2.3.0"
|
"socket.io-client": "^2.3.0",
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"react": "^16.13.1",
|
"react": "^16.13.1",
|
||||||
"react-dom": "^16.13.1"
|
"react-dom": "^16.13.1"
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { render } from '@testing-library/react';
|
||||||
import FormError from './FormError';
|
import FormError from './FormError';
|
||||||
|
|
||||||
test('renders FormError without crashing', () => {
|
test('renders FormError without crashing', () => {
|
||||||
const { getByTestId } = render(<FormError />);
|
const { getByTestId } = render(<FormError error={''}/>);
|
||||||
const FormErrorSpan = getByTestId('FormError');
|
const FormErrorSpan = getByTestId('FormError');
|
||||||
expect(FormErrorSpan).toBeInTheDocument();
|
expect(FormErrorSpan).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue