Skip to content

Instantly share code, notes, and snippets.

@martsie
Created January 25, 2017 08:47
Show Gist options
  • Save martsie/78bbccf2c191db7623b259dc856a5082 to your computer and use it in GitHub Desktop.
Save martsie/78bbccf2c191db7623b259dc856a5082 to your computer and use it in GitHub Desktop.
QUnit.module 'Waiter class'
test 'Waiter waits for 1 seconds', (assert) ->
done = do assert.async
waiter = new Waiter()
waiter.waitAndReturn ->
ok true, 'Timer completed'
do done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment