From e39d665688e1f8d5bb9b90cc70b3633e301f64d2 Mon Sep 17 00:00:00 2001 From: Ilya Radchenko Date: Wed, 11 Jul 2018 10:21:37 -0400 Subject: [PATCH] docs(api): try fixing getSettledState list --- addon-test-support/@ember/test-helpers/settled.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addon-test-support/@ember/test-helpers/settled.js b/addon-test-support/@ember/test-helpers/settled.js index c791b6aef..c76ef1b75 100644 --- a/addon-test-support/@ember/test-helpers/settled.js +++ b/addon-test-support/@ember/test-helpers/settled.js @@ -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