test: refactor, import temp update

This commit is contained in:
xidedix 2020-12-14 18:12:10 +01:00
parent ed83c9a3d4
commit f3f91c5d72
2 changed files with 7 additions and 7 deletions

View File

@ -5,17 +5,17 @@ import ChartLineSimple from './views/charts/ChartLineSimple'
import Dashboard from './views/dashboard/Dashboard.js'
it('mounts without crashing', () => {
it('mounts App without crashing', () => {
const wrapper = shallow(<App/>)
wrapper.unmount()
})
it('mounts dashboard without crashing', () => {
it('mounts Dashboard without crashing', () => {
const wrapper = shallow(<Dashboard/>)
wrapper.unmount()
})
it('mounts charts without crashing', () => {
it('mounts Charts without crashing', () => {
const wrapper = shallow(<ChartLineSimple/> )
wrapper.unmount()
})

View File

@ -1,5 +1,5 @@
import {configure} from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
configure({adapter: new Adapter()});