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;
|
output += str;
|
||||||
},
|
},
|
||||||
getOutput: function() {
|
getOutput: function() {
|
||||||
return output;
|
return output.replace('ConsoleReporter is deprecated and will be removed in a future version.', '');
|
||||||
},
|
},
|
||||||
clear: function() {
|
clear: function() {
|
||||||
output = "";
|
output = "";
|
||||||
|
|||||||
@@ -6,9 +6,6 @@ getJasmineRequireObj().ConsoleReporter = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function ConsoleReporter(options) {
|
function ConsoleReporter(options) {
|
||||||
if (console && console.warn) {
|
|
||||||
console.warn('ConsoleReporter is deprecated and will be removed in a future version.');
|
|
||||||
}
|
|
||||||
var print = options.print,
|
var print = options.print,
|
||||||
showColors = options.showColors || false,
|
showColors = options.showColors || false,
|
||||||
onComplete = options.onComplete || function() {},
|
onComplete = options.onComplete || function() {},
|
||||||
@@ -25,6 +22,8 @@ getJasmineRequireObj().ConsoleReporter = function() {
|
|||||||
},
|
},
|
||||||
failedSuites = [];
|
failedSuites = [];
|
||||||
|
|
||||||
|
print('ConsoleReporter is deprecated and will be removed in a future version.');
|
||||||
|
|
||||||
this.jasmineStarted = function() {
|
this.jasmineStarted = function() {
|
||||||
specCount = 0;
|
specCount = 0;
|
||||||
failureCount = 0;
|
failureCount = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user