Skip to content

Instantly share code, notes, and snippets.

@cyril-sf
Created December 17, 2013 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyril-sf/8011078 to your computer and use it in GitHub Desktop.
Save cyril-sf/8011078 to your computer and use it in GitHub Desktop.
Issue with mocha in RSVP.
test:start
Promise #0
asap:queue callback for Promise #0. function publishFulfillment(promise) {
publish(promise, promise._state = FULFILLED);
}
Promise #1
asap:flush 1
asap:flush callback for Promise #0. function publishFulfillment(promise) {
publish(promise, promise._state = FULFILLED);
}
test:end
test:start
Promise #2
asap:queue callback for Promise #2. function publishFulfillment(promise) {
publish(promise, promise._state = FULFILLED);
}
Promise #3
asap:queue callback for Promise #1. function publishFulfillment(promise) {
publish(promise, promise._state = FULFILLED);
}
asap:flush callback for Promise #2. function publishFulfillment(promise) {
publish(promise, promise._state = FULFILLED);
}
test:end
test:start
Promise #4
asap:queue callback for Promise #4. function publishRejection(promise) {
if (promise._onerror) {
promise._onerror(promise._detail);
}
publish(promise, promise._state = REJECTED);
}
Promise #5
asap:queue callback for Promise #3. function publishFulfillment(promise) {
publish(promise, promise._state = FULFILLED);
}
asap:flush callback for Promise #1. function publishFulfillment(promise) {
publish(promise, promise._state = FULFILLED);
}
asap:flush callback for Promise #4. function publishRejection(promise) {
if (promise._onerror) {
promise._onerror(promise._detail);
}
publish(promise, promise._state = REJECTED);
}
Events in queue: 0. undefined
test:end
asap:queue callback for Promise #5. function publishFulfillment(promise) {
publish(promise, promise._state = FULFILLED);
}
asap:flush callback for Promise #3. function publishFulfillment(promise) {
publish(promise, promise._state = FULFILLED);
}
asap:flush callback for Promise #5. function publishFulfillment(promise) {
publish(promise, promise._state = FULFILLED);
}
asap:flushed 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment