patch failing frontend tests

This commit is contained in:
Sorrel Bri 2020-04-17 00:01:04 -07:00
parent aa2c9084e5
commit c533c7837c
2 changed files with 2 additions and 4 deletions

View file

@ -8,9 +8,7 @@
"node-sass": "^4.13.0",
"react-router-dom": "^5.1.2",
"react-scripts": "^3.4.0",
"socket.io-client": "^2.3.0"
},
"peerDependencies": {
"socket.io-client": "^2.3.0",
"react": "^16.13.1",
"react-dom": "^16.13.1"
},

View file

@ -3,7 +3,7 @@ import { render } from '@testing-library/react';
import FormError from './FormError';
test('renders FormError without crashing', () => {
const { getByTestId } = render(<FormError />);
const { getByTestId } = render(<FormError error={''}/>);
const FormErrorSpan = getByTestId('FormError');
expect(FormErrorSpan).toBeInTheDocument();
});