Created
December 8, 2015 15:31
-
-
Save brianswisher/42ac7fac4d19541fbcda to your computer and use it in GitHub Desktop.
Unit test
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
((assert, it)=>{ | |
it("1 equals 1", function() { | |
return assert(1, 1); | |
}); | |
})( | |
(value, expected)=>{ //assert | |
return value === expected; | |
}, | |
(describe, test)=>{ //it | |
var result = test(); | |
if (result) { | |
console.info(describe); | |
} else { | |
console.error(describe); | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment