Created
September 4, 2011 06:59
-
-
Save craigspaeth/1192424 to your computer and use it in GitHub Desktop.
Simple Jasmine spec helper to run an entire suite asynchronously
This file contains hidden or 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
# Example usage: | |
# | |
# describe 'foo' -> | |
# runAsync() | |
# it 'tests things' -> | |
# expect(0 is 0).toBeTruthy() | |
# done() | |
# | |
_done = false | |
done = -> _done = true | |
runAsync = -> | |
beforeEach -> _done = false | |
afterEach -> waitsFor -> _done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment