Skip to content

Commit f3f91c5

Browse files
committed
test: refactor, import temp update
1 parent ed83c9a commit f3f91c5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/App.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ import ChartLineSimple from './views/charts/ChartLineSimple'
55
import Dashboard from './views/dashboard/Dashboard.js'
66

77

8-
it('mounts without crashing', () => {
8+
it('mounts App without crashing', () => {
99
const wrapper = shallow(<App/>)
1010
wrapper.unmount()
1111
})
1212

13-
it('mounts dashboard without crashing', () => {
13+
it('mounts Dashboard without crashing', () => {
1414
const wrapper = shallow(<Dashboard/>)
1515
wrapper.unmount()
1616
})
1717

18-
it('mounts charts without crashing', () => {
18+
it('mounts Charts without crashing', () => {
1919
const wrapper = shallow(<ChartLineSimple/> )
2020
wrapper.unmount()
2121
})

src/setupTests.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { configure } from 'enzyme';
2-
import Adapter from 'enzyme-adapter-react-16';
1+
import {configure} from 'enzyme';
2+
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
33

4-
configure({ adapter: new Adapter() });
4+
configure({adapter: new Adapter()});
55

66
if (global.document) {
7-
document.createRange = () => ( {
7+
document.createRange = () => ({
88
setStart: () => {},
99
setEnd: () => {},
1010
commonAncestorContainer: {

0 commit comments

Comments
 (0)