18 lines
306 B
JavaScript
18 lines
306 B
JavaScript
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;
|
|
};
|