Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
feat: remove dump, as karma implements it
Browse files Browse the repository at this point in the history
It makes no sense to define this functionality in every adapter.

Since karma-runner/karma@fd46365 this has been implemented in Karma.
  • Loading branch information
vojtajina committed Jul 16, 2013
1 parent f36250f commit e02af06
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
15 changes: 0 additions & 15 deletions src/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,3 @@ var createMochaStartFn = function(mocha) {
mocha.run();
};
};

var createDumpFn = function(tc, serialize) {
return function() {

var args = Array.prototype.slice.call(arguments, 0);

if (serialize) {
for (var i = 0; i < args.length; i++) {
args[i] = serialize(args[i]);
}
}

tc.info({dump: args});
};
};
3 changes: 0 additions & 3 deletions src/adapter.wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@


window.__karma__.start = createMochaStartFn(window.mocha);
window.dump = createDumpFn(window.__karma__, function(value) {
return window.angular && window.angular.mock && window.angular.mock.dump(value) || value;
});
window.mocha.setup({reporter: createMochaReporterConstructor(window.__karma__), ui: 'bdd',
globals: ['__cov*']});
})(window);

0 comments on commit e02af06

Please # to comment.