From d492e37c8a9749fa8ce31640a183731859897a5f Mon Sep 17 00:00:00 2001 From: David Sancho Moreno Date: Mon, 25 Nov 2024 19:16:35 +0100 Subject: [PATCH] Remove test that comes with 19 --- test/Ref__test.re | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 test/Ref__test.re diff --git a/test/Ref__test.re b/test/Ref__test.re deleted file mode 100644 index 9dca08716..000000000 --- a/test/Ref__test.re +++ /dev/null @@ -1,29 +0,0 @@ -open Jest; -open Expect; - -module Button_with_ref = { - [@react.component] - let make = (~children, ~ref) => { - ; - }; -}; - -let getByRole = (role, container) => { - ReactTestingLibrary.getByRole(~matcher=`Str(role), container); -}; - -[@mel.get] external innerHTML: Dom.element => string = "innerHTML"; - -describe("ref", () => { - test("can be passed as prop to a component", () => { - let domRef = React.createRef(); - let container = - ReactTestingLibrary.render( - - {React.string("Click me")} - , - ); - let button = getByRole("FancyButton", container); - expect(button->innerHTML)->toBe("Click me"); - }) -});