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

Fix docs for return type of findAll #529

Merged
merged 1 commit into from Jan 18, 2019
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
7 changes: 4 additions & 3 deletions addon-test-support/@ember/test-helpers/dom/find-all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`.');
}
Expand Down