Added a migration guide link to multiple done call deprecations

This commit is contained in:
Steve Gravrock
2021-12-14 08:16:06 -08:00
parent f3b26a0688
commit 57c294b307
7 changed files with 47 additions and 15 deletions

View File

@@ -933,7 +933,9 @@ x */
"An asynchronous function called its 'done' " + "An asynchronous function called its 'done' " +
'callback more than once. This is a bug in the spec, beforeAll, ' + 'callback more than once. This is a bug in the spec, beforeAll, ' +
'beforeEach, afterAll, or afterEach function in question. This will ' + 'beforeEach, afterAll, or afterEach function in question. This will ' +
'be treated as an error in a future version.\n' + 'be treated as an error in a future version. See' +
'<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> ' +
'for more information.\n' +
'(in spec: ' + '(in spec: ' +
self.getFullName() + self.getFullName() +
')', ')',
@@ -8780,7 +8782,10 @@ getJasmineRequireObj().ReportDispatcher = function(j$) {
deprecated( deprecated(
"An asynchronous reporter callback called its 'done' callback " + "An asynchronous reporter callback called its 'done' callback " +
'more than once. This is a bug in the reporter callback in ' + 'more than once. This is a bug in the reporter callback in ' +
'question. This will be treated as an error in a future version.', 'question. This will be treated as an error in a future ' +
'version. See' +
'<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> ' +
'for more information.',
{ ignoreRunnable: true } { ignoreRunnable: true }
); );
} }
@@ -10370,7 +10375,9 @@ getJasmineRequireObj().Suite = function(j$) {
"An asynchronous function called its 'done' callback more than " + "An asynchronous function called its 'done' callback more than " +
'once. This is a bug in the spec, beforeAll, beforeEach, afterAll, ' + 'once. This is a bug in the spec, beforeAll, beforeEach, afterAll, ' +
'or afterEach function in question. This will be treated as an error ' + 'or afterEach function in question. This will be treated as an error ' +
'in a future version.\n' + 'in a future version. See' +
'<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> ' +
'for more information.\n' +
'(in suite: ' + '(in suite: ' +
this.getFullName() + this.getFullName() +
')'; ')';
@@ -10379,7 +10386,9 @@ getJasmineRequireObj().Suite = function(j$) {
'A top-level beforeAll or afterAll function called its ' + 'A top-level beforeAll or afterAll function called its ' +
"'done' callback more than once. This is a bug in the beforeAll " + "'done' callback more than once. This is a bug in the beforeAll " +
'or afterAll function in question. This will be treated as an ' + 'or afterAll function in question. This will be treated as an ' +
'error in a future version.'; 'error in a future version. See' +
'<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> ' +
'for more information.';
} }
this.env.deprecated(msg, { ignoreRunnable: true }); this.env.deprecated(msg, { ignoreRunnable: true });

View File

@@ -538,7 +538,9 @@ describe('Spec', function() {
"An asynchronous function called its 'done' " + "An asynchronous function called its 'done' " +
'callback more than once. This is a bug in the spec, beforeAll, ' + 'callback more than once. This is a bug in the spec, beforeAll, ' +
'beforeEach, afterAll, or afterEach function in question. This will ' + 'beforeEach, afterAll, or afterEach function in question. This will ' +
'be treated as an error in a future version.\n' + 'be treated as an error in a future version. See' +
'<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> ' +
'for more information.\n' +
'(in spec: a spec)', '(in spec: a spec)',
{ ignoreRunnable: true } { ignoreRunnable: true }
); );

View File

@@ -236,7 +236,9 @@ describe('Suite', function() {
'A top-level beforeAll or afterAll function called its ' + 'A top-level beforeAll or afterAll function called its ' +
"'done' callback more than once. This is a bug in the beforeAll " + "'done' callback more than once. This is a bug in the beforeAll " +
'or afterAll function in question. This will be treated as an ' + 'or afterAll function in question. This will be treated as an ' +
'error in a future version.', 'error in a future version. See' +
'<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> ' +
'for more information.',
{ ignoreRunnable: true } { ignoreRunnable: true }
); );
}); });
@@ -258,7 +260,9 @@ describe('Suite', function() {
"An asynchronous function called its 'done' callback more than " + "An asynchronous function called its 'done' callback more than " +
'once. This is a bug in the spec, beforeAll, beforeEach, afterAll, ' + 'once. This is a bug in the spec, beforeAll, beforeEach, afterAll, ' +
'or afterEach function in question. This will be treated as an error ' + 'or afterEach function in question. This will be treated as an error ' +
'in a future version.\n' + 'in a future version. See' +
'<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> ' +
'for more information.\n' +
'(in suite: the parent suite the suite)', '(in suite: the parent suite the suite)',
{ ignoreRunnable: true } { ignoreRunnable: true }
); );

View File

@@ -519,7 +519,9 @@ describe('Env integration', function() {
'A top-level beforeAll or afterAll function called its ' + 'A top-level beforeAll or afterAll function called its ' +
"'done' callback more than once. This is a bug in the beforeAll " + "'done' callback more than once. This is a bug in the beforeAll " +
'or afterAll function in question. This will be treated as an ' + 'or afterAll function in question. This will be treated as an ' +
'error in a future version.'; 'error in a future version. See' +
'<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> ' +
'for more information.';
spyOn(console, 'error'); spyOn(console, 'error');
env.addReporter(reporter); env.addReporter(reporter);
@@ -555,7 +557,9 @@ describe('Env integration', function() {
"An asynchronous function called its 'done' " + "An asynchronous function called its 'done' " +
'callback more than once. This is a bug in the spec, beforeAll, ' + 'callback more than once. This is a bug in the spec, beforeAll, ' +
'beforeEach, afterAll, or afterEach function in question. This will ' + 'beforeEach, afterAll, or afterEach function in question. This will ' +
'be treated as an error in a future version.'; 'be treated as an error in a future version. See' +
'<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> ' +
'for more information.';
spyOn(console, 'error'); spyOn(console, 'error');
env.addReporter(reporter); env.addReporter(reporter);
@@ -601,7 +605,9 @@ describe('Env integration', function() {
"An asynchronous function called its 'done' " + "An asynchronous function called its 'done' " +
'callback more than once. This is a bug in the spec, beforeAll, ' + 'callback more than once. This is a bug in the spec, beforeAll, ' +
'beforeEach, afterAll, or afterEach function in question. This will ' + 'beforeEach, afterAll, or afterEach function in question. This will ' +
'be treated as an error in a future version.\n' + 'be treated as an error in a future version. See' +
'<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> ' +
'for more information.\n' +
'(in spec: a suite a spec)'; '(in spec: a suite a spec)';
spyOn(console, 'error'); spyOn(console, 'error');
@@ -644,7 +650,9 @@ describe('Env integration', function() {
var message = var message =
"An asynchronous reporter callback called its 'done' callback more " + "An asynchronous reporter callback called its 'done' callback more " +
'than once. This is a bug in the reporter callback in question. This ' + '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 treated as an error in a future version. See' +
'<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> ' +
'for more information.\nNote: This message ' +
'will be shown only once. Set the verboseDeprecations config property ' + 'will be shown only once. Set the verboseDeprecations config property ' +
'to true to see every occurrence.'; 'to true to see every occurrence.';

View File

@@ -48,7 +48,10 @@ getJasmineRequireObj().ReportDispatcher = function(j$) {
deprecated( deprecated(
"An asynchronous reporter callback called its 'done' callback " + "An asynchronous reporter callback called its 'done' callback " +
'more than once. This is a bug in the reporter callback in ' + 'more than once. This is a bug in the reporter callback in ' +
'question. This will be treated as an error in a future version.', 'question. This will be treated as an error in a future ' +
'version. See' +
'<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> ' +
'for more information.',
{ ignoreRunnable: true } { ignoreRunnable: true }
); );
} }

View File

@@ -151,7 +151,9 @@ x */
"An asynchronous function called its 'done' " + "An asynchronous function called its 'done' " +
'callback more than once. This is a bug in the spec, beforeAll, ' + 'callback more than once. This is a bug in the spec, beforeAll, ' +
'beforeEach, afterAll, or afterEach function in question. This will ' + 'beforeEach, afterAll, or afterEach function in question. This will ' +
'be treated as an error in a future version.\n' + 'be treated as an error in a future version. See' +
'<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> ' +
'for more information.\n' +
'(in spec: ' + '(in spec: ' +
self.getFullName() + self.getFullName() +
')', ')',

View File

@@ -242,7 +242,9 @@ getJasmineRequireObj().Suite = function(j$) {
"An asynchronous function called its 'done' callback more than " + "An asynchronous function called its 'done' callback more than " +
'once. This is a bug in the spec, beforeAll, beforeEach, afterAll, ' + 'once. This is a bug in the spec, beforeAll, beforeEach, afterAll, ' +
'or afterEach function in question. This will be treated as an error ' + 'or afterEach function in question. This will be treated as an error ' +
'in a future version.\n' + 'in a future version. See' +
'<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> ' +
'for more information.\n' +
'(in suite: ' + '(in suite: ' +
this.getFullName() + this.getFullName() +
')'; ')';
@@ -251,7 +253,9 @@ getJasmineRequireObj().Suite = function(j$) {
'A top-level beforeAll or afterAll function called its ' + 'A top-level beforeAll or afterAll function called its ' +
"'done' callback more than once. This is a bug in the beforeAll " + "'done' callback more than once. This is a bug in the beforeAll " +
'or afterAll function in question. This will be treated as an ' + 'or afterAll function in question. This will be treated as an ' +
'error in a future version.'; 'error in a future version. See' +
'<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> ' +
'for more information.';
} }
this.env.deprecated(msg, { ignoreRunnable: true }); this.env.deprecated(msg, { ignoreRunnable: true });