fix: correctly show error when karma fails to load
This commit is contained in:
parent
9211a22039
commit
31322e73b7
|
@ -71,4 +71,4 @@ Promise
|
|||
return Promise.all(
|
||||
allSpecFiles.map(function(moduleName) { return System.import(moduleName); }));
|
||||
})
|
||||
.then(__karma__.start, __karma__.error);
|
||||
.then(__karma__.start, (v) => console.error(v));
|
||||
|
|
|
@ -82,9 +82,7 @@ System.import('@angular/core/testing')
|
|||
});
|
||||
}));
|
||||
})
|
||||
.then(
|
||||
function() { __karma__.start(); },
|
||||
function(error) { __karma__.error(error.stack || error); });
|
||||
.then(function() { __karma__.start(); }, function(error) { console.error(error); });
|
||||
|
||||
|
||||
function onlySpecFiles(path) {
|
||||
|
|
Loading…
Reference in New Issue