Skip to content

Instantly share code, notes, and snippets.

@williankeller
Created September 25, 2015 12:29
Show Gist options
  • Select an option

  • Save williankeller/95bf5f4913ee1f29eca0 to your computer and use it in GitHub Desktop.

Select an option

Save williankeller/95bf5f4913ee1f29eca0 to your computer and use it in GitHub Desktop.
var test = require('tape')
var feedCat = require(process.argv[2])
test('tests', function (t) {
t.equal(feedCat('food'), 'yum')
t.throws(feedCat.bind(null, 'chocolate'))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment