Skip to content

Commit

Permalink
fix(shell): wrap app in CustomDataProvider in App test (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
mediremi committed Oct 8, 2021
1 parent aafa05c commit 3325605
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion shell/src/App.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import { CustomDataProvider } from '@dhis2/app-runtime'
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'

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

0 comments on commit 3325605

Please sign in to comment.