Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 1d97d7a

Browse files
committed
fix up error tests
1 parent 4bdd28d commit 1d97d7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/3-register-loader.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -198,18 +198,18 @@ describe('System Register Loader', function() {
198198

199199
it('should throw if on syntax error', async function() {
200200
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');
202202
});
203203

204204
it('should throw what the script throws', async function() {
205205
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');
207207
});
208208

209209
it('404 error', async function() {
210210
var err = await getImportError('./load-non-existent.js');
211211
var lines = err.split('\n\t');
212-
assert(lines[0].startsWith('LoaderError: '));
212+
assert(lines[0].startsWith('Error: '));
213213
assert(lines[0].endsWith('open \'' + testPath + 'non-existent.js\''));
214214
assert.equal(lines[1], 'Instantiating ' + testPath + 'non-existent.js');
215215
assert.equal(lines[2], 'Loading ' + testPath + 'load-non-existent.js');

0 commit comments

Comments
 (0)