Created
October 2, 2015 11:17
-
-
Save iampeterbanjo/48a757304237a9815cba to your computer and use it in GitHub Desktop.
This file contains 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
// output a warning or message to the console | |
// depending on how the test passed | |
function assert(test, description){ | |
console[!!test ? 'log' : 'warn']('Test %s: returned %s', description, test); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment