Merge branch 'refactor/rm-deprecated-substr' of https://github.com/CommanderRoot/jasmine
* Merges #1962 from @CommanderRoot
This commit is contained in:
@@ -1042,7 +1042,7 @@ getJasmineRequireObj().Spec = function(j$) {
|
|||||||
boilerplateEnd =
|
boilerplateEnd =
|
||||||
boilerplateStart + Spec.pendingSpecExceptionMessage.length;
|
boilerplateStart + Spec.pendingSpecExceptionMessage.length;
|
||||||
|
|
||||||
return fullMessage.substr(boilerplateEnd);
|
return fullMessage.slice(boilerplateEnd);
|
||||||
};
|
};
|
||||||
|
|
||||||
Spec.pendingSpecExceptionMessage = '=> marked Pending';
|
Spec.pendingSpecExceptionMessage = '=> marked Pending';
|
||||||
|
|||||||
@@ -58,8 +58,8 @@ describe('ArrayContaining', function() {
|
|||||||
if (
|
if (
|
||||||
typeof a == 'string' &&
|
typeof a == 'string' &&
|
||||||
typeof b == 'string' &&
|
typeof b == 'string' &&
|
||||||
a.substr(0, 3) == 'foo' &&
|
a.slice(0, 3) == 'foo' &&
|
||||||
b.substr(0, 3) == 'foo'
|
b.slice(0, 3) == 'foo'
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,8 +48,8 @@ describe('ArrayWithExactContents', function() {
|
|||||||
if (
|
if (
|
||||||
typeof a == 'string' &&
|
typeof a == 'string' &&
|
||||||
typeof b == 'string' &&
|
typeof b == 'string' &&
|
||||||
a.substr(0, 3) == 'foo' &&
|
a.slice(0, 3) == 'foo' &&
|
||||||
b.substr(0, 3) == 'foo'
|
b.slice(0, 3) == 'foo'
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -121,8 +121,8 @@ describe('ObjectContaining', function() {
|
|||||||
if (
|
if (
|
||||||
typeof a == 'string' &&
|
typeof a == 'string' &&
|
||||||
typeof b == 'string' &&
|
typeof b == 'string' &&
|
||||||
a.substr(0, 3) == 'foo' &&
|
a.slice(0, 3) == 'foo' &&
|
||||||
b.substr(0, 3) == 'foo'
|
b.slice(0, 3) == 'foo'
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,8 +81,8 @@ describe('Custom Matchers (Integration)', function() {
|
|||||||
if (
|
if (
|
||||||
typeof a == 'string' &&
|
typeof a == 'string' &&
|
||||||
typeof b == 'string' &&
|
typeof b == 'string' &&
|
||||||
a.substr(0, 3) == 'foo' &&
|
a.slice(0, 3) == 'foo' &&
|
||||||
b.substr(0, 3) == 'foo'
|
b.slice(0, 3) == 'foo'
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -316,7 +316,7 @@ getJasmineRequireObj().Spec = function(j$) {
|
|||||||
boilerplateEnd =
|
boilerplateEnd =
|
||||||
boilerplateStart + Spec.pendingSpecExceptionMessage.length;
|
boilerplateStart + Spec.pendingSpecExceptionMessage.length;
|
||||||
|
|
||||||
return fullMessage.substr(boilerplateEnd);
|
return fullMessage.slice(boilerplateEnd);
|
||||||
};
|
};
|
||||||
|
|
||||||
Spec.pendingSpecExceptionMessage = '=> marked Pending';
|
Spec.pendingSpecExceptionMessage = '=> marked Pending';
|
||||||
|
|||||||
Reference in New Issue
Block a user