We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QPaper.test.js doesn't have "rendered data tests", which lead to a logic error as shown in issue #14
QPaper.test.js
two checks must be added, preferably after line 35:
expect(getByTestId('title').textContent).toBe(question.title) expect(parseInt(getByTestId('likes').textContent, 10)).toBe(utils.getLikes(question.likes))
aside from that, the mocked question has 0 likes, another question should be created, that contains likes, and the component will be tested again
create a test called "renders QPaper" that asserts that the fields are rendered properly, with 2 different questions
test
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
QPaper.test.js
doesn't have "rendered data tests", which lead to a logic error as shown in issue #14what should be added
two checks must be added, preferably after line 35:
aside from that, the mocked question has 0 likes, another question should be created, that contains likes, and the component will be tested again
possible fix
create a
test
called "renders QPaper" that asserts that the fields are rendered properly, with 2 different questionsThe text was updated successfully, but these errors were encountered: