1+
12/*global jasmine, __karma__, window*/
23require ( 'core-js/es6' ) ;
34require ( 'core-js/es7/reflect' ) ;
@@ -15,22 +16,25 @@ require('zone.js/dist/sync-test');
1516// RxJS
1617require ( 'rxjs/Rx' ) ;
1718
18- let testing : any = require ( '@angular/core/testing' ) ;
19- let browser : any = require ( '@angular/platform-browser-dynamic/testing' ) ;
19+ Promise . all ( [
20+ System . import ( '@angular/core/testing' ) ,
21+ System . import ( '@angular/platform-browser-dynamic/testing' )
22+ ] ) . then ( function ( providers ) {
23+ let testing = providers [ 0 ] ;
24+ let testingBrowser = providers [ 1 ] ;
2025
21- testing . setBaseTestProviders (
22- browser . TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS ,
23- browser . TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS
24- ) ;
26+ testing . setBaseTestProviders ( testingBrowser . TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS ,
27+ testingBrowser . TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS ) ;
28+ } ) ;
2529
26- let testContext : any = require . context ( '../src' , true , / \. s p e c \. t s / ) ;
30+ let testContext = require . context ( '../src' , true , / \. s p e c \. t s / ) ;
2731
2832/*
2933 * get all the files, for each file, call the context function
3034 * that will require the file and load it up here. Context will
3135 * loop and require those spec files here
3236 */
33- function requireAll ( requireContext : any ) {
37+ function requireAll ( requireContext ) {
3438 return requireContext . keys ( ) . map ( requireContext ) ;
3539}
3640
0 commit comments