refactor: replace deprecated String.prototype.substr()

.substr() is deprecated so we replace it with functions which work similarily but aren't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
This commit is contained in:
Tobias Speicher
2022-03-25 16:03:46 +01:00
parent 1e0c312f9f
commit aa979277fb
6 changed files with 10 additions and 10 deletions

View File

@@ -316,7 +316,7 @@ getJasmineRequireObj().Spec = function(j$) {
boilerplateEnd =
boilerplateStart + Spec.pendingSpecExceptionMessage.length;
return fullMessage.substr(boilerplateEnd);
return fullMessage.slice(boilerplateEnd);
};
Spec.pendingSpecExceptionMessage = '=> marked Pending';