@@ -127,8 +127,9 @@ export class SimpleAngularTestRunnerComponent
127
127
url : '/assets/runner' ,
128
128
} ,
129
129
( { evalJs } ) => {
130
+ evalJs ( this . scriptLoaderService . getScript ( 'chai' ) ) ;
130
131
// evalJs(this.scriptLoaderService.getScript('shim'));
131
- // evalJs(this.scriptLoaderService.getScript('zone'));
132
+ evalJs ( this . scriptLoaderService . getScript ( 'zone' ) ) ;
132
133
}
133
134
) ;
134
135
@@ -137,13 +138,8 @@ export class SimpleAngularTestRunnerComponent
137
138
'<app-root></app-root><my-app></my-app><div class="error"></div>'
138
139
) ;
139
140
140
- sandbox . evalJs ( this . scriptLoaderService . getScript ( 'chai' ) ) ;
141
141
sandbox . evalJs ( this . scriptLoaderService . getScript ( 'mocha' ) ) ;
142
142
sandbox . evalJs ( this . scriptLoaderService . getScript ( 'test-bootstrap' ) ) ;
143
- // sandbox.evalJs(this.scriptLoaderService.getScript('shim'));
144
- // sandbox.evalJs(this.scriptLoaderService.getScript('zone'));
145
- // sandbox.evalJs(this.scriptLoaderService.getScript('system-config'));
146
- // sandbox.evalJs(this.scriptLoaderService.getScript('ng-bundle'));
147
143
148
144
this . subscription = this . changedFilesSubject . subscribe ( ( files ) => {
149
145
addMetaInformation ( sandbox , this . code ) ;
@@ -153,7 +149,8 @@ export class SimpleAngularTestRunnerComponent
153
149
. filter ( ( [ path ] ) => path . match ( / \. j s $ / ) && ! path . startsWith ( 'code' ) )
154
150
. map ( ( [ path , code ] ) => {
155
151
try {
156
- sandbox . evalJs ( `console.log('I remove modul')` ) ;
152
+
153
+ sandbox . evalJs ( `console.log('I remove module')` ) ;
157
154
sandbox . evalJs ( code ) ;
158
155
} catch ( e ) {
159
156
console . groupCollapsed ( e . message ) ;
0 commit comments