diff --git a/content/docs/testing-recipes.md b/content/docs/testing-recipes.md
index 95187680..e4cdd2e0 100644
--- a/content/docs/testing-recipes.md
+++ b/content/docs/testing-recipes.md
@@ -237,10 +237,10 @@ function Contact(props) {
Contact {props.name} via{" "}
-
+
email
- or on their
+ or on their
website
.
@@ -265,7 +265,7 @@ import MockedMap from "./map";
jest.mock("./map", () => {
return function DummyMap(props) {
return (
-
+
{props.center.lat}:{props.center.long}
);
@@ -301,14 +301,14 @@ it("should render contact information", () => {
});
expect(
- container.querySelector("[data-test-id='email']").getAttribute("href")
+ container.querySelector("[data-testid='email']").getAttribute("href")
).toEqual("mailto:test@example.com");
expect(
- container.querySelector('[data-test-id="site"]').getAttribute("href")
+ container.querySelector('[data-testid="site"]').getAttribute("href")
).toEqual("http://test.com");
- expect(container.querySelector('[data-test-id="map"]').textContent).toEqual(
+ expect(container.querySelector('[data-testid="map"]').textContent).toEqual(
"0:0"
);
});
@@ -389,7 +389,7 @@ it("changes value when clicked", () => {
});
expect(onChange).toHaveBeenCalledTimes(6);
- expect(button.innerHTML).toBe("Turn on!");
+ expect(button.innerHTML).toBe("Turn on");
});
```
@@ -404,7 +404,7 @@ Different DOM events and their properties are described in [MDN](https://develop
Your code might use timer-based functions like `setTimeout` to schedule more work in the future. In this example, a multiple choice panel waits for a selection and advances, timing out if a selection isn't made in 5 seconds:
```jsx
-//card.js
+// card.js
import React, { useEffect } from "react";
@@ -421,7 +421,7 @@ export default function Card(props) {
return [1, 2, 3, 4].map(choice => (