Created
September 25, 2018 19:09
-
-
Save techiediaries/3e21437df0696e9a010ce9e0319155f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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