From ece78fe769ac2305739fce6be2e91430d9ab62fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Mon, 19 Nov 2018 22:27:06 +0100 Subject: [PATCH] docs: getAllByName -> getAllByType in example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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');