Created
October 4, 2012 18:15
-
-
Save anchan828/3835385 to your computer and use it in GitHub Desktop.
Jasmineで非同期テスト
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 "ゲーム取得", => | |
@data = null | |
afterEach => | |
@data =null | |
it "取得", => | |
api.getGame(GAME_ID[0]).done (data) => @data = data | |
waitsFor => | |
data | |
, "load..." | |
,5000 | |
runs => expect(data).not.toBeNull() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment