From f7b063b35ac8d27e60ad9b38a26d5c36a94d699b Mon Sep 17 00:00:00 2001 From: AmberJ Date: Fri, 23 Dec 2022 10:02:33 -0700 Subject: [PATCH] Update 4-writing-block-tests.md Fix function name and add `=` in variable declaration. --- .../testing-react-wordpress-blocks/4-writing-block-tests.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/testing-react-wordpress-blocks/4-writing-block-tests.md b/content/testing-react-wordpress-blocks/4-writing-block-tests.md index ef606cb..eb233f3 100644 --- a/content/testing-react-wordpress-blocks/4-writing-block-tests.md +++ b/content/testing-react-wordpress-blocks/4-writing-block-tests.md @@ -104,7 +104,7 @@ describe("Editor componet", () => { const setAttributes = jest.fn(); //render component - const {getByLabel} = render( + const {getByLabelText} = render( { ); //Get the input by label text - const input getByLabelText('Edit Value'); + const input = getByLabelText('Edit Value'); //Fire a change event on the input fireEvent.change(input, { target: { value: "New Value" }