Clarified deprecation message for this in describes
This commit is contained in:
@@ -4219,7 +4219,9 @@ getJasmineRequireObj().deprecatingSuiteProxy = function(j$) {
|
|||||||
/* eslint-disable compat/compat */
|
/* eslint-disable compat/compat */
|
||||||
// TODO: Remove this in the next major release.
|
// TODO: Remove this in the next major release.
|
||||||
getJasmineRequireObj().deprecatingThisProxy = function(j$) {
|
getJasmineRequireObj().deprecatingThisProxy = function(j$) {
|
||||||
var msg = "Access to 'this' in describe functions is deprecated.";
|
var msg =
|
||||||
|
"Access to 'this' in describe functions (and in arrow functions " +
|
||||||
|
'inside describe functions) is deprecated.';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
new Proxy({}, {});
|
new Proxy({}, {});
|
||||||
|
|||||||
@@ -768,7 +768,9 @@ describe('Env', function() {
|
|||||||
|
|
||||||
it("deprecates access to 'this' in describes", function() {
|
it("deprecates access to 'this' in describes", function() {
|
||||||
jasmine.getEnv().requireProxy();
|
jasmine.getEnv().requireProxy();
|
||||||
var msg = "Access to 'this' in describe functions is deprecated.",
|
var msg =
|
||||||
|
"Access to 'this' in describe functions (and in arrow " +
|
||||||
|
'functions inside describe functions) is deprecated.',
|
||||||
ran = false;
|
ran = false;
|
||||||
spyOn(env, 'deprecated');
|
spyOn(env, 'deprecated');
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
/* eslint-disable compat/compat */
|
/* eslint-disable compat/compat */
|
||||||
// TODO: Remove this in the next major release.
|
// TODO: Remove this in the next major release.
|
||||||
getJasmineRequireObj().deprecatingThisProxy = function(j$) {
|
getJasmineRequireObj().deprecatingThisProxy = function(j$) {
|
||||||
var msg = "Access to 'this' in describe functions is deprecated.";
|
var msg =
|
||||||
|
"Access to 'this' in describe functions (and in arrow functions " +
|
||||||
|
'inside describe functions) is deprecated.';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
new Proxy({}, {});
|
new Proxy({}, {});
|
||||||
|
|||||||
Reference in New Issue
Block a user