Created
November 26, 2011 03:49
-
-
Save asalant/1394948 to your computer and use it in GitHub Desktop.
Asynchronous jasmine-node example 1
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
describe 'User', -> | |
describe '#save()', -> | |
it 'should save without error', (done) -> | |
user = new User('Luna') | |
user.save (error) -> | |
expect(error).toBeNull() | |
done(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Referenced from http://bytes.goodeggsinc.com/post/13332056735/better-asynchronous-jasmine-node-specs.