Skip to content

Instantly share code, notes, and snippets.

@techiediaries
Created September 25, 2018 19:09
Show Gist options
  • Select an option

  • Save techiediaries/3e21437df0696e9a010ce9e0319155f2 to your computer and use it in GitHub Desktop.

Select an option

Save techiediaries/3e21437df0696e9a010ce9e0319155f2 to your computer and use it in GitHub Desktop.
describe("/Basic Math Utils", function () {
beforeEach(function () {
jasmine.addMatchers({
hasEvenMethod: function (util, customEqualityTesters) {
return {
compare: function (actual, expected) {
var result = { pass: utils.isEven !== undefined };
if (result.pass) {
result.message = "Expected isEven() to be not defined."
}
else {
result.message = "Expected isEven() to be defined."
}
return result;
}
}
}
});
});
/*...*/
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment