diff --git a/README.md b/README.md index 9521c8afc..74cc68ee6 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,8 @@ function setAnswer(question, answer) { } test('should verify two questions', () => { - const { getAllByName, getByText } = render(); - const allQuestions = getAllByName(Question); + const { getAllByType, getByText } = render(); + const allQuestions = getAllByType(Question); setAnswer(allQuestions[0], 'a1'); setAnswer(allQuestions[1], 'a2');