-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from harry0000/feature-1_2_0
Update version to 1.2.0: Add unit/equipment & Fix bugs
- Loading branch information
Showing
62 changed files
with
5,000 additions
and
8,833 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { RecoilRoot } from 'recoil'; | ||
import { DndProvider } from 'react-dnd'; | ||
import { HTML5Backend } from 'react-dnd-html5-backend'; | ||
import { act } from 'react-dom/test-utils'; | ||
import { render } from '@testing-library/react'; | ||
|
||
import App from './App'; | ||
|
||
import './i18n/config'; | ||
|
||
test('renders without crashing', () => { | ||
const div = document.createElement('div'); | ||
ReactDOM.render( | ||
<RecoilRoot> | ||
<DndProvider backend={HTML5Backend}> | ||
<App /> | ||
</DndProvider> | ||
</RecoilRoot>, | ||
div | ||
); | ||
ReactDOM.unmountComponentAtNode(div); | ||
test('renders without crashing', async () => { | ||
await act(() => { | ||
render( | ||
<RecoilRoot> | ||
<DndProvider backend={HTML5Backend}> | ||
<App/> | ||
</DndProvider> | ||
</RecoilRoot>, | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.