Skip to content

Commit 4888331

Browse files
ankitsinghaniyazKent C. Dodds
authored andcommitted
docs: fix typos in custom renderer example (#212)
This PR fixes the mistake in the custom renderer example as discussed on #204 (comment)
1 parent 8410fb4 commit 4888331

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ export const queryAllByTestId = queryHelpers.queryAllByAttribute.bind(
589589
export function getAllByTestId(container, id, ...rest) {
590590
const els = queryAllByTestId(container, id, ...rest)
591591
if (!els.length) {
592-
throw getElementError(
592+
throw queryHelpers.getElementError(
593593
`Unable to find an element by: [data-test-id="${id}"]`,
594594
container,
595595
)
@@ -601,8 +601,8 @@ export function getByTestId(...args) {
601601
return queryHelpers.firstResultOrNull(getAllByTestId, ...args)
602602
}
603603

604-
const customRender = (node, ...options) => {
605-
const utils = render(node, ...options)
604+
const customRender = (container, ...options) => {
605+
const utils = render(container, ...options)
606606

607607
return {
608608
...utils,

0 commit comments

Comments
 (0)