Renamed jasmine.exactly to jasmine.is, for similarity with toBe

This commit is contained in:
Steve Gravrock
2022-05-21 08:30:53 -07:00
parent 856a040a2d
commit 41f7fabe2f
6 changed files with 39 additions and 39 deletions

View File

@@ -0,0 +1,17 @@
getJasmineRequireObj().Is = function(j$) {
class Is {
constructor(expected) {
this.expected_ = expected;
}
asymmetricMatch(actual) {
return actual === this.expected_;
}
jasmineToString(pp) {
return `<jasmine.is(${pp(this.expected_)})>`;
}
}
return Is;
};