File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,17 @@ import ChartLineSimple from './views/charts/ChartLineSimple'
5
5
import Dashboard from './views/dashboard/Dashboard.js'
6
6
7
7
8
- it ( 'mounts without crashing' , ( ) => {
8
+ it ( 'mounts App without crashing' , ( ) => {
9
9
const wrapper = shallow ( < App /> )
10
10
wrapper . unmount ( )
11
11
} )
12
12
13
- it ( 'mounts dashboard without crashing' , ( ) => {
13
+ it ( 'mounts Dashboard without crashing' , ( ) => {
14
14
const wrapper = shallow ( < Dashboard /> )
15
15
wrapper . unmount ( )
16
16
} )
17
17
18
- it ( 'mounts charts without crashing' , ( ) => {
18
+ it ( 'mounts Charts without crashing' , ( ) => {
19
19
const wrapper = shallow ( < ChartLineSimple /> )
20
20
wrapper . unmount ( )
21
21
} )
Original file line number Diff line number Diff line change 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 ' ;
3
3
4
- configure ( { adapter : new Adapter ( ) } ) ;
4
+ configure ( { adapter : new Adapter ( ) } ) ;
5
5
6
6
if ( global . document ) {
7
- document . createRange = ( ) => ( {
7
+ document . createRange = ( ) => ( {
8
8
setStart : ( ) => { } ,
9
9
setEnd : ( ) => { } ,
10
10
commonAncestorContainer : {
You can’t perform that action at this time.
0 commit comments