Added a migration guide link to multiple done call deprecations
This commit is contained in:
@@ -48,7 +48,10 @@ getJasmineRequireObj().ReportDispatcher = function(j$) {
|
||||
deprecated(
|
||||
"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.',
|
||||
'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 }
|
||||
);
|
||||
}
|
||||
|
||||
@@ -151,7 +151,9 @@ x */
|
||||
"An asynchronous function called its 'done' " +
|
||||
'callback more than once. This is a bug in the spec, beforeAll, ' +
|
||||
'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: ' +
|
||||
self.getFullName() +
|
||||
')',
|
||||
|
||||
@@ -242,7 +242,9 @@ getJasmineRequireObj().Suite = function(j$) {
|
||||
"An asynchronous function called its 'done' callback more than " +
|
||||
'once. This is a bug in the spec, beforeAll, beforeEach, afterAll, ' +
|
||||
'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: ' +
|
||||
this.getFullName() +
|
||||
')';
|
||||
@@ -251,7 +253,9 @@ getJasmineRequireObj().Suite = function(j$) {
|
||||
'A top-level beforeAll or afterAll function called its ' +
|
||||
"'done' callback more than once. This is a bug in the beforeAll " +
|
||||
'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 });
|
||||
|
||||
Reference in New Issue
Block a user