1
+
1
2
/*global jasmine, __karma__, window*/
2
3
require ( 'core-js/es6' ) ;
3
4
require ( 'core-js/es7/reflect' ) ;
@@ -15,22 +16,25 @@ require('zone.js/dist/sync-test');
15
16
// RxJS
16
17
require ( 'rxjs/Rx' ) ;
17
18
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 ] ;
20
25
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
+ } ) ;
25
29
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 / ) ;
27
31
28
32
/*
29
33
* get all the files, for each file, call the context function
30
34
* that will require the file and load it up here. Context will
31
35
* loop and require those spec files here
32
36
*/
33
- function requireAll ( requireContext : any ) {
37
+ function requireAll ( requireContext ) {
34
38
return requireContext . keys ( ) . map ( requireContext ) ;
35
39
}
36
40
0 commit comments