Skip to content

Instantly share code, notes, and snippets.

@srohde
Created December 7, 2012 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srohde/4229691 to your computer and use it in GitHub Desktop.
Save srohde/4229691 to your computer and use it in GitHub Desktop.
Node test with ShouldJS
should = require 'should'
api = require '../../routes/api'
describe 'api', ->
describe '#login()', ->
it 'should login a user', (done) ->
api.login.should.be.a 'function'
api.login
query:
email: "foo@gmail.com"
password: "secret"
, send: (result) ->
result.should.be.a 'object'
result.email.should.equal "foo@gmail.com"
done()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment