Closed ahnwarez closed 2 years ago
The test in client/pages/News/News.test.js needs to be reviewed.
client/pages/News/News.test.js
It looks like this test is testing the component and not the page.
Locate the TODO comment and make sure that test asserts that NewsList is rendered or called with news props.
TODO
NewsList
news
This could be helpful https://stackoverflow.com/questions/70019300/how-to-test-react-components-props-expect-component-to-be-called-with
The test in
client/pages/News/News.test.js
needs to be reviewed.It looks like this test is testing the component and not the page.
Locate the
TODO
comment and make sure that test asserts thatNewsList
is rendered or called withnews
props.This could be helpful https://stackoverflow.com/questions/70019300/how-to-test-react-components-props-expect-component-to-be-called-with