docs: getAllByName -> getAllByType in example (#67)

<!-- Please provide enough information so that others can review your pull request. -->
<!-- Keep pull requests small and focused on a single change. -->

### Summary

Get rid of all `getAllByName` mentions in examples.
This commit is contained in:
Michał Pierzchała
2018-11-19 22:28:06 +01:00
committed by GitHub
parent 85deb91e3e
commit a052349ce7
+2 -2
View File
@@ -37,8 +37,8 @@ function setAnswer(question, answer) {
}
test('should verify two questions', () => {
const { getAllByName, getByText } = render(<QuestionsBoard {...props} />);
const allQuestions = getAllByName(Question);
const { getAllByType, getByText } = render(<QuestionsBoard {...props} />);
const allQuestions = getAllByType(Question);
setAnswer(allQuestions[0], 'a1');
setAnswer(allQuestions[1], 'a2');