diff --git a/src/__tests__/Article.test.js b/src/__tests__/Article.test.js index 51d131e02..37a1d6f33 100644 --- a/src/__tests__/Article.test.js +++ b/src/__tests__/Article.test.js @@ -7,5 +7,7 @@ import Article from "../components/Article"; test("displays the text 'please pass this test'", () => { render(
); + + expect(screen.queryByText("please pass this test")).toBeInTheDocument(); }); diff --git a/src/components/Article.js b/src/components/Article.js index 3afd1670d..f56a6551f 100644 --- a/src/components/Article.js +++ b/src/components/Article.js @@ -3,7 +3,7 @@ import React from "react"; function Article() { return (
- {/* please pass this test */} + return

please pass this test

); } diff --git a/src/components/Header.js b/src/components/Header.js index 2223fb9ca..f05649b20 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -4,7 +4,7 @@ function Header(props) { return (

{/* uncomment the line below to pass the test */} - {/* hello from the Header! */} + return

hello from the Header!

; ) }