From 0c6b90ffa623e71392abf8c92b1b149cd6ba2f57 Mon Sep 17 00:00:00 2001 From: Tibor Barsi Date: Wed, 28 Dec 2022 22:49:17 +0100 Subject: [PATCH] Update cheatsheet.mdx Typo in cheatsheet.mdx --- docs/dom-testing-library/cheatsheet.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dom-testing-library/cheatsheet.mdx b/docs/dom-testing-library/cheatsheet.mdx index 7b6c74750..d5625d104 100644 --- a/docs/dom-testing-library/cheatsheet.mdx +++ b/docs/dom-testing-library/cheatsheet.mdx @@ -151,7 +151,7 @@ test('loads items eventually', async () => { fireEvent.click(getByText(node, 'Load')) // Wait for page to update with query text - const items = await findByText(node, /Item #[0-9]: /) + const items = await findAllByText(node, /Item #[0-9]: /) expect(items).toHaveLength(10) }) ```