Browse Source

Update testing-recipes.md with English correct. (#2224)

"Get a hold" should be the phrasal verb "get ahold". See https://www.quickanddirtytips.com/education/grammar/a-hold-or-ahold?page=1
main
Todd Chaffee 5 years ago
committed by Sunil Pai
parent
commit
12a84023f1
  1. 2
      content/docs/testing-recipes.md

2
content/docs/testing-recipes.md

@ -393,7 +393,7 @@ it("changes value when clicked", () => {
render(<Toggle onChange={onChange} />, container);
});
// get a hold of the button element, and trigger some clicks on it
// get ahold of the button element, and trigger some clicks on it
const button = document.querySelector("[data-testid=toggle]");
expect(button.innerHTML).toBe("Turn off");

Loading…
Cancel
Save