1
- import { ViewControllerMock } from './view-controller' ;
2
1
import { Observable } from 'rxjs/Observable' ;
3
2
4
3
export class NavControllerMock {
@@ -54,7 +53,7 @@ export class NavControllerMock {
54
53
instance . goToRoot . and . returnValue ( Promise . resolve ( ) ) ;
55
54
instance . initPane . and . returnValue ( 1 ) ;
56
55
57
- instance [ 'root' ] = ViewControllerMock . instance ( ) ;
56
+ instance [ 'root' ] = { } ;
58
57
instance [ 'rootParams' ] = { } ;
59
58
60
59
instance . push . and . returnValue ( Promise . resolve ( ) ) ;
@@ -72,12 +71,12 @@ export class NavControllerMock {
72
71
instance . canSwipeBack . and . returnValue ( true ) ;
73
72
instance . canGoBack . and . returnValue ( true ) ;
74
73
instance . isTransitioning . and . returnValue ( false ) ;
75
- instance . getActive . and . returnValue ( ViewControllerMock . instance ( ) ) ;
74
+ instance . getActive . and . returnValue ( { } ) ;
76
75
instance . isActive . and . returnValue ( true ) ;
77
- instance . getByIndex . and . returnValue ( ViewControllerMock . instance ( ) ) ;
78
- instance . getPrevious . and . returnValue ( ViewControllerMock . instance ( ) ) ;
79
- instance . first . and . returnValue ( ViewControllerMock . instance ( ) ) ;
80
- instance . last . and . returnValue ( ViewControllerMock . instance ( ) ) ;
76
+ instance . getByIndex . and . returnValue ( { } ) ;
77
+ instance . getPrevious . and . returnValue ( { } ) ;
78
+ instance . first . and . returnValue ( { } ) ;
79
+ instance . last . and . returnValue ( { } ) ;
81
80
instance . indexOf . and . returnValue ( 0 ) ;
82
81
instance . length . and . returnValue ( 0 ) ;
83
82
instance . getViews . and . returnValue ( [ ] ) ;
0 commit comments