mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
test(app): fix app unit tests
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
import {IonicApp, Nav, Tabs, Tab, NavOptions, Config, ViewController} from '../../../../ionic';
|
import {IonicApp, Nav, Tabs, Tab, NavOptions, Config, ViewController, Platform} from '../../../../ionic';
|
||||||
|
|
||||||
export function run() {
|
export function run() {
|
||||||
|
|
||||||
@ -88,6 +88,7 @@ describe('IonicApp', () => {
|
|||||||
|
|
||||||
var app: IonicApp;
|
var app: IonicApp;
|
||||||
var config: Config;
|
var config: Config;
|
||||||
|
var platform: Platform;
|
||||||
|
|
||||||
function mockNav(): Nav {
|
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);
|
||||||
@ -103,7 +104,8 @@ describe('IonicApp', () => {
|
|||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
config = new Config();
|
config = new Config();
|
||||||
app = new IonicApp(config, null);
|
platform = new Platform();
|
||||||
|
app = new IonicApp(config, null, platform);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user