Created
January 16, 2014 22:27
-
-
Save shime/8464734 to your computer and use it in GitHub Desktop.
testing Ember.RSVP with QUnit
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
test "the Ember.RSVP.Promise works", -> | |
promise = new Ember.RSVP.Promise((resolve, reject) -> | |
Ember.run(null, resolve, "value") | |
) | |
Ember.run => | |
promise.then (actual) -> | |
equal(actual, 'value', 'promise resolved with "hello"') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment