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"); - }) -});