Matchers & Matchers specs now broken up into individual files. There is now a requireMatchers jasmineRequire function to attach matchers properly.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
getJasmineRequireObj().toContain = function() {
|
||||
function toContain(util, customEqualityTesters) {
|
||||
customEqualityTesters = customEqualityTesters || [];
|
||||
|
||||
return {
|
||||
compare: function(actual, expected) {
|
||||
|
||||
return {
|
||||
pass: util.contains(actual, expected, customEqualityTesters)
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return toContain;
|
||||
};
|
||||
Reference in New Issue
Block a user