This repository was archived by the owner on Jul 13, 2020. It is now read-only.
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -198,18 +198,18 @@ describe('System Register Loader', function() {
198
198
199
199
it ( 'should throw if on syntax error' , async function ( ) {
200
200
var err = await getImportError ( './main.js' ) ;
201
- assert . equal ( err , 'LoaderError : dep error\n\tEvaluating ' + testPath + 'deperror.js\n\tEvaluating ' + testPath + 'main.js\n\tLoading ./main.js' ) ;
201
+ assert . equal ( err , 'Error : dep error\n\tEvaluating ' + testPath + 'deperror.js\n\tEvaluating ' + testPath + 'main.js\n\tLoading ./main.js' ) ;
202
202
} ) ;
203
203
204
204
it ( 'should throw what the script throws' , async function ( ) {
205
205
var err = await getImportError ( './deperror.js' ) ;
206
- assert . equal ( err , 'LoaderError : dep error\n\tEvaluating ' + testPath + 'deperror.js\n\tLoading ./deperror.js' ) ;
206
+ assert . equal ( err , 'Error : dep error\n\tEvaluating ' + testPath + 'deperror.js\n\tLoading ./deperror.js' ) ;
207
207
} ) ;
208
208
209
209
it ( '404 error' , async function ( ) {
210
210
var err = await getImportError ( './load-non-existent.js' ) ;
211
211
var lines = err . split ( '\n\t' ) ;
212
- assert ( lines [ 0 ] . startsWith ( 'LoaderError : ' ) ) ;
212
+ assert ( lines [ 0 ] . startsWith ( 'Error : ' ) ) ;
213
213
assert ( lines [ 0 ] . endsWith ( 'open \'' + testPath + 'non-existent.js\'' ) ) ;
214
214
assert . equal ( lines [ 1 ] , 'Instantiating ' + testPath + 'non-existent.js' ) ;
215
215
assert . equal ( lines [ 2 ] , 'Loading ' + testPath + 'load-non-existent.js' ) ;
You can’t perform that action at this time.
0 commit comments