Skip to content

Commit dd69c11

Browse files
aibenmonro
authored andcommitted
docs: Add matcher for expect() (#50)
1 parent 42e600b commit dd69c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ describe("App", () => {
137137
test("should render greeting", () => {
138138
const { getByText } = render(App, { props: { name: "world" } });
139139

140-
expect(getByText("Hello world!"));
140+
expect(getByText("Hello world!")).toBeInTheDocument();
141141
});
142142

143143
test("should change button text after click", async () => {

0 commit comments

Comments
 (0)