We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35dd0ed commit e0a4f09Copy full SHA for e0a4f09
ionic/components/app/test/app.spec.ts
@@ -89,23 +89,28 @@ describe('IonicApp', () => {
89
var app: IonicApp;
90
var config: Config;
91
var platform: Platform;
92
+ var _cd: any;
93
94
function mockNav(): Nav {
- return new Nav(null,null,null,config,null,null,null,null,null,null);
95
+ return new Nav(null, null, null, config, null, null, null, null, null, null);
96
}
97
98
function mockTabs(): Tabs {
99
return new Tabs(null, null, null, config, null, null, null);
100
101
102
function mockTab(parentTabs: Tabs): Tab {
- return new Tab(parentTabs,null,config,null,null,null,null,null,null);
103
+ return new Tab(parentTabs, app, config, null, null, null, null, null, null, _cd);
104
105
106
beforeEach(() => {
107
config = new Config();
108
platform = new Platform();
109
app = new IonicApp(config, null, platform);
110
+ _cd = {
111
+ reattach: function(){},
112
+ detach: function(){}
113
+ };
114
});
115
116
0 commit comments