Since we want the user to be able to pass a negative comparison function, the extra layer of wrapping is now needed
14 lines
222 B
JavaScript
14 lines
222 B
JavaScript
getJasmineRequireObj().toBe = function() {
|
|
function toBe() {
|
|
return {
|
|
compare: function(actual, expected) {
|
|
return {
|
|
pass: actual === expected
|
|
};
|
|
}
|
|
};
|
|
}
|
|
|
|
return toBe;
|
|
};
|