Renamed jasmine.exactly to jasmine.is, for similarity with toBe
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
getJasmineRequireObj().Exactly = function(j$) {
|
||||
class Exactly {
|
||||
getJasmineRequireObj().Is = function(j$) {
|
||||
class Is {
|
||||
constructor(expected) {
|
||||
this.expected_ = expected;
|
||||
}
|
||||
@@ -9,9 +9,9 @@ getJasmineRequireObj().Exactly = function(j$) {
|
||||
}
|
||||
|
||||
jasmineToString(pp) {
|
||||
return `<jasmine.exactly(${pp(this.expected_)})>`;
|
||||
return `<jasmine.is(${pp(this.expected_)})>`;
|
||||
}
|
||||
}
|
||||
|
||||
return Exactly;
|
||||
return Is;
|
||||
};
|
||||
@@ -287,12 +287,12 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
||||
* Get an {@link AsymmetricEqualityTester}, usable in any {@link matchers|matcher}
|
||||
* that passes if the actual value is the same as the sample as determined
|
||||
* by the `===` operator.
|
||||
* @name jasmine.exactly
|
||||
* @name jasmine.is
|
||||
* @function
|
||||
* @param {Object} sample - The value to compare the actual to.
|
||||
*/
|
||||
j$.exactly = function(sample) {
|
||||
return new j$.Exactly(sample);
|
||||
j$.is = function(sample) {
|
||||
return new j$.Is(sample);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -91,7 +91,7 @@ var getJasmineRequireObj = (function(jasmineGlobal) {
|
||||
j$.Falsy = jRequire.Falsy(j$);
|
||||
j$.Empty = jRequire.Empty(j$);
|
||||
j$.NotEmpty = jRequire.NotEmpty(j$);
|
||||
j$.Exactly = jRequire.Exactly(j$);
|
||||
j$.Is = jRequire.Is(j$);
|
||||
|
||||
j$.matchers = jRequire.requireMatchers(jRequire, j$);
|
||||
j$.asyncMatchers = jRequire.requireAsyncMatchers(jRequire, j$);
|
||||
|
||||
Reference in New Issue
Block a user