From 4d6e59e6bdf16e4f0f84b6d59c736cd842821c2f Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Sun, 25 Aug 2019 22:44:31 -0400 Subject: [PATCH] Add matcher for expect() --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ed01d7..6bd0f98 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ describe("App", () => { test("should render greeting", () => { const { getByText } = render(App, { props: { name: "world" } }); - expect(getByText("Hello world!")); + expect(getByText("Hello world!")).toBeInTheDocument(); }); test("should change button text after click", async () => {