Skip to content

Commit

Permalink
adding setBaseTestProviders
Browse files Browse the repository at this point in the history
  • Loading branch information
lathonez committed Feb 18, 2016
1 parent 0621169 commit 07f60bf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/app.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { TEST_BROWSER_PLATFORM_PROVIDERS, TEST_BROWSER_APPLICATION_PROVIDERS} from 'angular2/platform/testing/browser';
import { setBaseTestProviders } from 'angular2/testing';
import { IonicApp, Platform } from 'ionic-framework/ionic';
import { ClickerApp } from '../app/app';

// bit of a hack (though we'd want to test app anyway at some point)
// can't get includeAllSources to work in Karma: including the main app.ts does this implicitly

import { IonicApp, Platform } from 'ionic-framework/ionic';
import { ClickerApp } from '../app/app';
// this needs doing _once_ for the entire test suite, hence it's here
setBaseTestProviders(TEST_BROWSER_PLATFORM_PROVIDERS, TEST_BROWSER_APPLICATION_PROVIDERS);

let clickerApp = null;

Expand Down

0 comments on commit 07f60bf

Please sign in to comment.