Skip to content

Commit

Permalink
Added async tests to example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quang Van committed Jun 3, 2012
1 parent 3ba58da commit 7af1d82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/test.coffee
Expand Up @@ -51,6 +51,12 @@ Feature "Mix & Match", ->
it 'should work too', ->
true.should.eql true

Feature "Async tests with Mocha-Cakes", ->
Given "I want to test async code", ->
When "I pass 'done' to GWT commands", ->
Then "It should wait for 'done' to be done.", (done)->
done()

# Run with
# mocha examples/test.coffee -R spec -r should
#
Expand Down

0 comments on commit 7af1d82

Please sign in to comment.