Helps reduce how nested custom matchers have to be for users as well as Jasmine internal matchers [#59161378]
12 lines
191 B
JavaScript
12 lines
191 B
JavaScript
getJasmineRequireObj().toBe = function() {
|
|
function toBe() {
|
|
return function(actual, expected) {
|
|
return {
|
|
pass: actual === expected
|
|
};
|
|
};
|
|
}
|
|
|
|
return toBe;
|
|
};
|