From 560029eae3ce844c5e26bb737b17cce7bd857d0a Mon Sep 17 00:00:00 2001 From: David Yan Date: Thu, 17 Jan 2019 19:06:42 -0800 Subject: [PATCH] Fix lying doc block on findAll test helper --- addon-test-support/@ember/test-helpers/dom/find-all.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/addon-test-support/@ember/test-helpers/dom/find-all.ts b/addon-test-support/@ember/test-helpers/dom/find-all.ts index 2d060c2f9..8898aa201 100644 --- a/addon-test-support/@ember/test-helpers/dom/find-all.ts +++ b/addon-test-support/@ember/test-helpers/dom/find-all.ts @@ -2,14 +2,15 @@ import getElements from './-get-elements'; import toArray from './-to-array'; /** - Find all elements matched by the given selector. Equivalent to calling - `querySelectorAll()` on the test root element. + Find all elements matched by the given selector. Similar to calling + `querySelectorAll()` on the test root element, but returns an array instead + of a `NodeList`. @public @param {string} selector the selector to search for @return {Array} array of matched elements */ -export default function find(selector: string): Element[] { +export default function findAll(selector: string): Element[] { if (!selector) { throw new Error('Must pass a selector to `findAll`.'); }