From 31322e73b787d254e6f478201804ab886a083001 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 13 Dec 2016 14:57:40 -0800 Subject: [PATCH] fix: correctly show error when karma fails to load --- modules/@angular/router/karma-test-shim.js | 2 +- test-main.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/@angular/router/karma-test-shim.js b/modules/@angular/router/karma-test-shim.js index 9b71826f28..2376efb5cd 100644 --- a/modules/@angular/router/karma-test-shim.js +++ b/modules/@angular/router/karma-test-shim.js @@ -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)); diff --git a/test-main.js b/test-main.js index 5507d941bd..34a54c26ca 100644 --- a/test-main.js +++ b/test-main.js @@ -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) {