Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit f33a938

Browse files
committed
chore(testabilityPatch): fix the dump fn so that it works with karma's debug.html
1 parent 01ef128 commit f33a938

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/helpers/testabilityPatch.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -323,14 +323,17 @@ function provideLog($provide) {
323323
}
324324

325325
function pending() {
326-
dump('PENDING');
326+
window.dump('PENDING');
327327
}
328328

329329
function trace(name) {
330-
dump(new Error(name).stack);
330+
window.dump(new Error(name).stack);
331331
}
332332

333-
var karmaDump = dump;
333+
var karmaDump = window.dump || function() {
334+
window.console.log.apply(window.console, arguments);
335+
};
336+
334337
window.dump = function () {
335338
karmaDump.apply(undefined, map(arguments, function(arg) {
336339
return angular.mock.dump(arg);

0 commit comments

Comments
 (0)