From aa9e08017db16c41cb263a0d08f89d10ad0670e6 Mon Sep 17 00:00:00 2001 From: AlexZorkin Date: Fri, 7 Jan 2022 14:49:57 -0800 Subject: [PATCH] fix: lint --- .../theme/widgets/SelectParentWidget.test.tsx | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/app/tests/unit/lib/theme/widgets/SelectParentWidget.test.tsx b/app/tests/unit/lib/theme/widgets/SelectParentWidget.test.tsx index 094b268785..ec2fdce46d 100644 --- a/app/tests/unit/lib/theme/widgets/SelectParentWidget.test.tsx +++ b/app/tests/unit/lib/theme/widgets/SelectParentWidget.test.tsx @@ -58,34 +58,28 @@ const props: any = { describe("The SelectParentWidget Widget", () => { it("selects the first option from parent", async () => { render(); - const parentDropdown = screen.getByLabelText("Parent Label") - expect(parentDropdown.value).toEqual( - "parent placeholder" - ); + const parentDropdown = screen.getByLabelText("Parent Label"); + expect(parentDropdown.value).toEqual("parent placeholder"); fireEvent.change(parentDropdown, { target: { value: "1" } }); expect(parentDropdown.value).toEqual("1"); }); it("selects the first option from child", async () => { render(); - const childDropdown = screen.getByLabelText("Child Label") - const parentDropdown = screen.getByLabelText("Parent Label") + const childDropdown = screen.getByLabelText("Child Label"); + const parentDropdown = screen.getByLabelText("Parent Label"); fireEvent.change(parentDropdown, { target: { value: "2" } }); - expect(childDropdown.value).toEqual( - "child placeholder" - ); + expect(childDropdown.value).toEqual("child placeholder"); fireEvent.change(childDropdown, { target: { value: "3" } }); expect(childDropdown.value).toEqual("3"); }); it("cannot select the first option from child with non-selected parent", async () => { render(); - const childDropdown = screen.getByLabelText("Child Label") - const parentDropdown = screen.getByLabelText("Parent Label") + const childDropdown = screen.getByLabelText("Child Label"); + const parentDropdown = screen.getByLabelText("Parent Label"); fireEvent.change(parentDropdown, { target: { value: "2" } }); - expect(childDropdown.value).toEqual( - "child placeholder" - ); + expect(childDropdown.value).toEqual("child placeholder"); fireEvent.change(childDropdown, { target: { value: "1" } }); expect(childDropdown.value).toEqual(""); });