Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(api): try fixing getSettledState list #396

Merged
merged 1 commit into from
Aug 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions addon-test-support/@ember/test-helpers/settled.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,18 @@ function checkWaiters() {
/**
Check various settledness metrics, and return an object with the following properties:

* `hasRunLoop` - Checks if a run-loop has been started. If it has, this will
- `hasRunLoop` - Checks if a run-loop has been started. If it has, this will
be `true` otherwise it will be `false`.
* `hasPendingTimers` - Checks if there are scheduled timers in the run-loop.
- `hasPendingTimers` - Checks if there are scheduled timers in the run-loop.
These pending timers are primarily registered by `Ember.run.schedule`. If
there are pending timers, this will be `true`, otherwise `false`.
* `hasPendingWaiters` - Checks if any registered test waiters are still
- `hasPendingWaiters` - Checks if any registered test waiters are still
pending (e.g. the waiter returns `true`). If there are pending waiters,
this will be `true`, otherwise `false`.
* `hasPendingRequests` - Checks if there are pending AJAX requests (based on
- `hasPendingRequests` - Checks if there are pending AJAX requests (based on
`ajaxSend` / `ajaxComplete` events triggered by `jQuery.ajax`). If there
are pending requests, this will be `true`, otherwise `false`.
* `pendingRequestCount` - The count of pending AJAX requests.
- `pendingRequestCount` - The count of pending AJAX requests.

@public
@returns {Object} object with properties for each of the metrics used to determine settledness
Expand Down