From 2348b51be7817e89352d2434f41df3647233da13 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Sat, 9 Apr 2016 23:42:00 -0500 Subject: [PATCH] test(app): fix app unit tests --- ionic/components/app/test/app.spec.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ionic/components/app/test/app.spec.ts b/ionic/components/app/test/app.spec.ts index 62a4496ce8..eb950a1e9c 100644 --- a/ionic/components/app/test/app.spec.ts +++ b/ionic/components/app/test/app.spec.ts @@ -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() { @@ -88,6 +88,7 @@ describe('IonicApp', () => { var app: IonicApp; var config: Config; + var platform: Platform; function mockNav(): Nav { return new Nav(null,null,null,config,null,null,null,null,null,null); @@ -103,7 +104,8 @@ describe('IonicApp', () => { beforeEach(() => { config = new Config(); - app = new IonicApp(config, null); + platform = new Platform(); + app = new IonicApp(config, null, platform); }); });