Skip to content

Commit c40827d

Browse files
authored
Merge pull request #50 from joshuamorony/master
feat(mocks): added mocks that support tabs with lazy loading Thanks for your support.
2 parents 7b6a22c + 23e34c9 commit c40827d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

test-config/mocks-ionic.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,39 @@ export class SplashScreenMock extends SplashScreen {
7777
return;
7878
}
7979
}
80+
81+
export class NavMock {
82+
83+
public pop(): any {
84+
return new Promise(function(resolve: Function): void {
85+
resolve();
86+
});
87+
}
88+
89+
public push(): any {
90+
return new Promise(function(resolve: Function): void {
91+
resolve();
92+
});
93+
}
94+
95+
public getActive(): any {
96+
return {
97+
'instance': {
98+
'model': 'something',
99+
},
100+
};
101+
}
102+
103+
public setRoot(): any {
104+
return true;
105+
}
106+
107+
public registerChildNav(nav: any): void {
108+
return ;
109+
}
110+
111+
}
112+
113+
export class DeepLinkerMock {
114+
115+
}

0 commit comments

Comments
 (0)