Let's just use the print function that's passed in for deprecation messaging
[#80410002]
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user