Skip to content

Commit

Permalink
App.js testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kichang committed Nov 14, 2020
1 parent 4ea942f commit 255ffba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function App() {
<Route path = '/' exact component={MainPage}/>
<Route path = '/item/add' exact component = {AddItem}/>
<Route path = '/item/confirm' exact component={ItemConfirm}/>
<Route render={() => <h1>Not Found</h1>} />
{/* <Route render={() => <h1>Not Found</h1>} /> */}
</Switch>
</div>
</BrowserRouter>
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import ReactDOM from 'react-dom';
import App from './App';
import { Provider } from 'react-redux';
import store from './store/store';
import { createMemoryHistory } from 'history';


it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<Provider store={store}><App /></Provider>, div);
ReactDOM.unmountComponentAtNode(div);
});
});

0 comments on commit 255ffba

Please sign in to comment.