Skip to content

Instantly share code, notes, and snippets.

@sikachu
Created July 6, 2012 00:53
Show Gist options
  • Save sikachu/3057373 to your computer and use it in GitHub Desktop.
Save sikachu/3057373 to your computer and use it in GitHub Desktop.
window.it from Jasmine monkeypatched to show error if test is not implemented.
window.it = (desc, func) ->
if func?
jasmine.getEnv().it(desc, func)
else
jasmine.getEnv().it desc, ->
throw "test is undefined"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment