From 592fb2c88335c5c1e542dcf88fbf16126401030e Mon Sep 17 00:00:00 2001 From: Ben Styles Date: Tue, 12 Feb 2019 13:35:34 +0000 Subject: [PATCH] Improve readme example I got quite confused by the example, which created a snapshot of an object with many testing utility methods instead of a JSX snapshot. This PR makes the example work as expected for new users. --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index 6f91a77..66706cd 100644 --- a/readme.md +++ b/readme.md @@ -42,6 +42,7 @@ test("Component renders", () =>

{ReasonReact.string("Heading")}

|> render + |> container |> expect |> toMatchSnapshot );