update tests

This commit is contained in:
Sharon Kennedy
2020-09-06 15:24:41 -04:00
parent 91bec23c48
commit dbbe188adc
3 changed files with 30 additions and 20 deletions

View File

@@ -170,7 +170,9 @@ class ChatBox extends React.Component {
window.clearInterval(this.state.waitIntervalId) // no more waiting messages
}
this.state.localStorage.clear()
if (this.state.localStorage) {
this.state.localStorage.clear()
}
if (resetState) {
this.setState(this.initialState)