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(
|
return Promise.all(
|
||||||
allSpecFiles.map(function(moduleName) { return System.import(moduleName); }));
|
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(
|
.then(function() { __karma__.start(); }, function(error) { console.error(error); });
|
||||||
function() { __karma__.start(); },
|
|
||||||
function(error) { __karma__.error(error.stack || error); });
|
|
||||||
|
|
||||||
|
|
||||||
function onlySpecFiles(path) {
|
function onlySpecFiles(path) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user