@@ -74,11 +74,9 @@ describe('App router component', () => {
7474 it ( 'loads dashboard' , ( ) => {
7575 const main = el . instance . findByType ( 'main' ) [ 0 ] ;
7676 expect ( main . children . length ) . toEqual ( 1 ) ;
77- const dashboard = main . children [ 0 ] ;
77+ const dashboard = main . children [ 0 ] . el ;
7878 expect ( dashboard . type ) . toEqual ( 'Dashboard' ) ;
79- expect (
80- dashboard . matches ( shallow ( < Dashboard /> ) ) ,
81- ) . toEqual ( true ) ;
79+ expect ( dashboard ) . toEqual ( shallow ( < Dashboard /> ) ) ;
8280 } ) ;
8381 } ) ;
8482 describe ( 'no network failure with optimizely url' , ( ) => {
@@ -91,11 +89,9 @@ describe('App router component', () => {
9189 it ( 'loads dashboard' , ( ) => {
9290 const main = el . instance . findByType ( 'main' ) [ 0 ] ;
9391 expect ( main . children . length ) . toEqual ( 1 ) ;
94- const dashboard = main . children [ 0 ] ;
92+ const dashboard = main . children [ 0 ] . el ;
9593 expect ( dashboard . type ) . toEqual ( 'Dashboard' ) ;
96- expect (
97- dashboard . matches ( shallow ( < Dashboard /> ) ) ,
98- ) . toEqual ( true ) ;
94+ expect ( dashboard ) . toEqual ( shallow ( < Dashboard /> ) ) ;
9995 } ) ;
10096 } ) ;
10197 describe ( 'no network failure with optimizely project id' , ( ) => {
@@ -108,11 +104,9 @@ describe('App router component', () => {
108104 it ( 'loads dashboard' , ( ) => {
109105 const main = el . instance . findByType ( 'main' ) [ 0 ] ;
110106 expect ( main . children . length ) . toEqual ( 1 ) ;
111- const dashboard = main . children [ 0 ] ;
107+ const dashboard = main . children [ 0 ] . el ;
112108 expect ( dashboard . type ) . toEqual ( 'Dashboard' ) ;
113- expect (
114- dashboard . matches ( shallow ( < Dashboard /> ) ) ,
115- ) . toEqual ( true ) ;
109+ expect ( dashboard ) . toEqual ( shallow ( < Dashboard /> ) ) ;
116110 } ) ;
117111 } ) ;
118112 describe ( 'initialize failure' , ( ) => {
0 commit comments