File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -164,27 +164,11 @@ describe('HomePage', () => {
164164 expect ( el ) . toBeUndefined ( ) ;
165165 } ) ;
166166
167- it ( 'should request uid from Storage before loading home when view entered' , fakeAsync ( ( ) => {
168- spyOn ( component , 'requestUID' ) . and . callThrough ( ) ;
169- spyOn ( storage , 'ready' ) . and . callThrough ( ) ;
170- spyOn ( storage , 'get' ) . and . callThrough ( ) ;
171- spyOn ( component , 'loadHome' ) ;
172- component . ionViewDidLoad ( ) ;
173- tick ( ) ;
174- fixture . detectChanges ( ) ;
175- expect ( component . requestUID ) . toHaveBeenCalled ( ) ;
176- expect ( storage . ready ) . toHaveBeenCalled ( ) ;
177- expect ( storage . get ) . toHaveBeenCalled ( ) ;
178- expect ( component . loadHome ) . toHaveBeenCalled ( ) ;
179- } ) ) ;
180-
181167 it ( 'should load home' , ( ) => {
182168 spyOn ( component , 'timestampFeed' ) . and . returnValue ( { subscribe : ( ) => { } } ) ;
183- spyOn ( component , 'checkIfProfileBlocked' ) ;
184169 spyOn ( component , 'startLoader' ) ;
185170 component . loadHome ( ) ;
186171 expect ( component . timestampFeed ) . toHaveBeenCalled ( ) ;
187- expect ( component . checkIfProfileBlocked ) . toHaveBeenCalled ( ) ;
188172 expect ( component . startLoader ) . toHaveBeenCalled ( ) ;
189173 } ) ;
190174
You can’t perform that action at this time.
0 commit comments