Last active
December 8, 2015 17:23
-
-
Save brianswisher/9b37607d4f266b79e7e0 to your computer and use it in GitHub Desktop.
Test template
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)=>{ | |
function func(){ | |
return true; | |
} | |
it("<better decription here>", function() { | |
return assert( | |
func(), | |
true | |
); | |
}); | |
})( | |
(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