From 6a4ac2804fc8e0015fa4fd99a8ceb5a941142d15 Mon Sep 17 00:00:00 2001 From: Neil Kistner Date: Mon, 4 Jun 2018 22:36:21 -0500 Subject: [PATCH] Update readme with proper usage --- readme.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 83b8367..8dccb0c 100644 --- a/readme.md +++ b/readme.md @@ -35,12 +35,17 @@ $ npm install --save-dev bs-react-testing-library open Jest; describe("Component", () => { - open ExpectJs; + open Expect; test("renders", () => { - let component = ReactShallowRenderer.renderWithRenderer(); - - expect(Js.Undefined.return(component)) |> toBeDefined; + ( +
+

{ReasonReact.string("Heading")}

+
+ ) + |> render + |> expect + |> toMatchSnapshot; }); }); ```