Skip to content

Commit

Permalink
update sample test case to include intl component
Browse files Browse the repository at this point in the history
  • Loading branch information
byteshiva committed Mar 31, 2019
1 parent fff7edd commit 829e076
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/App.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { IntlProvider } from "react-intl";


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

ReactDOM.render(<IntlProvider locale="en" timeZone="Asia/Tokyo">
<App /></IntlProvider>, div);
ReactDOM.unmountComponentAtNode(div);
});

0 comments on commit 829e076

Please sign in to comment.