@@ -74,11 +74,9 @@ describe('App router component', () => {
74
74
it ( 'loads dashboard' , ( ) => {
75
75
const main = el . instance . findByType ( 'main' ) [ 0 ] ;
76
76
expect ( main . children . length ) . toEqual ( 1 ) ;
77
- const dashboard = main . children [ 0 ] ;
77
+ const dashboard = main . children [ 0 ] . el ;
78
78
expect ( dashboard . type ) . toEqual ( 'Dashboard' ) ;
79
- expect (
80
- dashboard . matches ( shallow ( < Dashboard /> ) ) ,
81
- ) . toEqual ( true ) ;
79
+ expect ( dashboard ) . toEqual ( shallow ( < Dashboard /> ) ) ;
82
80
} ) ;
83
81
} ) ;
84
82
describe ( 'no network failure with optimizely url' , ( ) => {
@@ -91,11 +89,9 @@ describe('App router component', () => {
91
89
it ( 'loads dashboard' , ( ) => {
92
90
const main = el . instance . findByType ( 'main' ) [ 0 ] ;
93
91
expect ( main . children . length ) . toEqual ( 1 ) ;
94
- const dashboard = main . children [ 0 ] ;
92
+ const dashboard = main . children [ 0 ] . el ;
95
93
expect ( dashboard . type ) . toEqual ( 'Dashboard' ) ;
96
- expect (
97
- dashboard . matches ( shallow ( < Dashboard /> ) ) ,
98
- ) . toEqual ( true ) ;
94
+ expect ( dashboard ) . toEqual ( shallow ( < Dashboard /> ) ) ;
99
95
} ) ;
100
96
} ) ;
101
97
describe ( 'no network failure with optimizely project id' , ( ) => {
@@ -108,11 +104,9 @@ describe('App router component', () => {
108
104
it ( 'loads dashboard' , ( ) => {
109
105
const main = el . instance . findByType ( 'main' ) [ 0 ] ;
110
106
expect ( main . children . length ) . toEqual ( 1 ) ;
111
- const dashboard = main . children [ 0 ] ;
107
+ const dashboard = main . children [ 0 ] . el ;
112
108
expect ( dashboard . type ) . toEqual ( 'Dashboard' ) ;
113
- expect (
114
- dashboard . matches ( shallow ( < Dashboard /> ) ) ,
115
- ) . toEqual ( true ) ;
109
+ expect ( dashboard ) . toEqual ( shallow ( < Dashboard /> ) ) ;
116
110
} ) ;
117
111
} ) ;
118
112
describe ( 'initialize failure' , ( ) => {
0 commit comments