Created
December 7, 2012 00:27
-
-
Save srohde/4229691 to your computer and use it in GitHub Desktop.
Node test with ShouldJS
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
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