Let's just use the print function that's passed in for deprecation messaging

[#80410002]
This commit is contained in:
slackersoft
2014-10-11 14:20:19 -07:00
parent 6cc09e00d3
commit 2151a13705
2 changed files with 3 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ describe("ConsoleReporter", function() {
output += str;
},
getOutput: function() {
return output;
return output.replace('ConsoleReporter is deprecated and will be removed in a future version.', '');
},
clear: function() {
output = "";

View File

@@ -6,9 +6,6 @@ getJasmineRequireObj().ConsoleReporter = function() {
};
function ConsoleReporter(options) {
if (console && console.warn) {
console.warn('ConsoleReporter is deprecated and will be removed in a future version.');
}
var print = options.print,
showColors = options.showColors || false,
onComplete = options.onComplete || function() {},
@@ -25,6 +22,8 @@ getJasmineRequireObj().ConsoleReporter = function() {
},
failedSuites = [];
print('ConsoleReporter is deprecated and will be removed in a future version.');
this.jasmineStarted = function() {
specCount = 0;
failureCount = 0;