Rephrased note about verboseDeprecations

This commit is contained in:
Steve Gravrock
2021-11-24 11:45:32 -08:00
parent b13329114c
commit 439be97c34
4 changed files with 9 additions and 8 deletions

View File

@@ -4261,8 +4261,8 @@ getJasmineRequireObj().Deprecator = function(j$) {
}
var verboseNote =
'Note: This message will be shown only once. ' +
'Set config.verboseDeprecations to true to see every occurrence.';
'Note: This message will be shown only once. Set the verboseDeprecations ' +
'config property to true to see every occurrence.';
Deprecator.prototype.verboseDeprecations = function(enabled) {
this.verbose_ = enabled;

View File

@@ -288,8 +288,8 @@ describe('Deprecator', function() {
function verboseDeprecationsNote() {
return (
'Note: This message will be shown only once. Set ' +
'config.verboseDeprecations to true to see every occurrence.'
'Note: This message will be shown only once. Set the ' +
'verboseDeprecations config property to true to see every occurrence.'
);
}

View File

@@ -645,8 +645,9 @@ describe('Env integration', function() {
"An asynchronous reporter callback called its 'done' callback more " +
'than once. This is a bug in the reporter callback in question. This ' +
'will be treated as an error in a future version.\nNote: This message ' +
'will be shown only once. Set config.verboseDeprecations to true to ' +
'see every occurrence.';
'will be shown only once. Set the verboseDeprecations config property ' +
'to true to see every occurrence.';
var reporter = jasmine.createSpyObj('fakeReport', ['jasmineDone']);
reporter.specDone = function(result, done) {
done();

View File

@@ -6,8 +6,8 @@ getJasmineRequireObj().Deprecator = function(j$) {
}
var verboseNote =
'Note: This message will be shown only once. ' +
'Set config.verboseDeprecations to true to see every occurrence.';
'Note: This message will be shown only once. Set the verboseDeprecations ' +
'config property to true to see every occurrence.';
Deprecator.prototype.verboseDeprecations = function(enabled) {
this.verbose_ = enabled;