patch failing react tests
This commit is contained in:
commit
e41d889177
4 changed files with 19337 additions and 10041 deletions
16597
package-lock.json
generated
16597
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -5,11 +5,6 @@
|
|||
"test": "lerna run test",
|
||||
"bootstrap": "lerna bootstrap --hoist"
|
||||
},
|
||||
"dependencies": {
|
||||
"nodemon": "^2.0.3",
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/preset-flow": "^7.8.3",
|
||||
"@testing-library/jest-dom": "^4.2.4",
|
||||
|
|
|
@ -36,6 +36,8 @@ function App() {
|
|||
dispatch({type:'SOCKET', message: 'LAUNCH', body:{nsp:'', dispatch}});
|
||||
}
|
||||
socketConnect();
|
||||
|
||||
return () => dispatch({type: 'SOCKET', message: 'DISCONNECT', body: {}});
|
||||
}, [ state.connect ])
|
||||
|
||||
return (
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import './ActionError.scss';
|
||||
|
||||
const ActionError = (props) => {
|
||||
const errorMessage = props.error;
|
||||
const errorMessage = props.error || '';
|
||||
return (
|
||||
<span
|
||||
className="error error--action"
|
||||
|
|
Loading…
Reference in a new issue