test(app): fix karma test for app to include change detector

This commit is contained in:
Brandy Carney
2016-04-20 14:38:51 -04:00
parent 35dd0ed0b0
commit e0a4f09304

View File

@@ -89,9 +89,10 @@ describe('IonicApp', () => {
var app: IonicApp;
var config: Config;
var platform: Platform;
var _cd: any;
function mockNav(): Nav {
return new Nav(null,null,null,config,null,null,null,null,null,null);
return new Nav(null, null, null, config, null, null, null, null, null, null);
}
function mockTabs(): Tabs {
@@ -99,13 +100,17 @@ describe('IonicApp', () => {
}
function mockTab(parentTabs: Tabs): Tab {
return new Tab(parentTabs,null,config,null,null,null,null,null,null);
return new Tab(parentTabs, app, config, null, null, null, null, null, null, _cd);
}
beforeEach(() => {
config = new Config();
platform = new Platform();
app = new IonicApp(config, null, platform);
_cd = {
reattach: function(){},
detach: function(){}
};
});
});