File tree 1 file changed +3
-13
lines changed
1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,9 @@ import 'babel-polyfill';
5
5
import 'zone.js/dist/zone' ;
6
6
import 'zone.js/dist/long-stack-trace-zone' ;
7
7
import 'zone.js/dist/proxy' ;
8
- import 'zone.js/dist/sync-test' ;
9
- < % _ if ( filters . jasmine ) { - % >
10
- import 'zone.js/dist/jasmine-patch' ;
11
- < % _ } - % >
8
+ import 'zone.js/dist/sync-test' ; < % _ if ( filters . jasmine ) { % >
9
+ import 'zone.js/dist/jasmine-patch' ; < % } % > < % _ if ( filters . mocha ) { % >
10
+ import 'zone.js/dist/mocha-patch' ; < % } % >
12
11
import 'zone.js/dist/async-test';
13
12
import 'zone.js/dist/fake-async-test';
14
13
@@ -28,12 +27,3 @@ import {
28
27
29
28
TestBed.initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
30
29
31
- < % _ if ( filters . mocha ) { - % >
32
- var hook = new Mocha.Hook('Modified Angular beforeEach Hook', function() {
33
- getTestBed ( ) . resetTestingModule ( ) ;
34
- } );
35
-
36
- hook.ctx = mocha.suite.ctx;
37
- hook.parent = mocha.suite;
38
- mocha.suite._beforeEach = [hook];
39
- < % _ } - % >
You can’t perform that action at this time.
0 commit comments