@@ -33,7 +33,7 @@ describe('Browser', () => {
33
33
} ) ;
34
34
35
35
it ( 'warning initializing parse/node in browser' , ( ) => {
36
- const Parse = require ( '../Parse' ) ;
36
+ const Parse = require ( '../Parse' ) . default ;
37
37
jest . spyOn ( console , 'log' ) . mockImplementationOnce ( ( ) => { } ) ;
38
38
jest . spyOn ( Parse , '_initialize' ) . mockImplementationOnce ( ( ) => { } ) ;
39
39
Parse . initialize ( 'A' , 'B' ) ;
@@ -45,7 +45,7 @@ describe('Browser', () => {
45
45
46
46
it ( 'initializing parse/node in browser with server rendering' , ( ) => {
47
47
process . env . SERVER_RENDERING = true ;
48
- const Parse = require ( '../Parse' ) ;
48
+ const Parse = require ( '../Parse' ) . default ;
49
49
jest . spyOn ( console , 'log' ) . mockImplementationOnce ( ( ) => { } ) ;
50
50
jest . spyOn ( Parse , '_initialize' ) . mockImplementationOnce ( ( ) => { } ) ;
51
51
Parse . initialize ( 'A' , 'B' ) ;
@@ -54,7 +54,7 @@ describe('Browser', () => {
54
54
} ) ;
55
55
56
56
it ( 'should start eventually queue poll on initialize' , ( ) => {
57
- const Parse = require ( '../Parse' ) ;
57
+ const Parse = require ( '../Parse' ) . default ;
58
58
jest . spyOn ( console , 'log' ) . mockImplementationOnce ( ( ) => { } ) ;
59
59
jest . spyOn ( EventuallyQueue , 'poll' ) . mockImplementationOnce ( ( ) => { } ) ;
60
60
Parse . initialize ( 'A' , 'B' ) ;
0 commit comments