Skip to content

Instantly share code, notes, and snippets.

@pketh
Created December 3, 2015 19:01
Show Gist options
  • Save pketh/fd8a74832d051a86b4bf to your computer and use it in GitHub Desktop.
Save pketh/fd8a74832d051a86b4bf to your computer and use it in GitHub Desktop.
tests multiple items to see if that item should be excluded
dothis = ->
console.log 'do this'
dothistoo = ->
console.log 'do this too'
dox = ->
console.log 'do x'
text = (x) ->
unless x is 'hi'
dox()
unless x is 'bhi'
dothis()
unless x is 'yup'
dothistoo()
x = 'hi'
text(x)
# expect do this, do this too
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment