Skip to content

Commit a671fa9

Browse files
authored
Fix Typo
Fixes #16
1 parent 2ee9c1d commit a671fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lessons/07-testing/D-testing-custom-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ test("to call the API and give back the pizza of the day", async () => {
8686

8787
- waitFor is a handy trick where you need to wait for React to settle. You give it a body that throws errors until it's true. `expect` when it doesn't work throws an error so that's how this works.
8888
- Once it resolves to true, it passes the test and moves on. If it fails like 20 times (that's configurable) it will then fail the test.
89-
- Some people this is too into the implementation details and I half agree. However it is useful from the perspective that this hook needs to work in a certain way and it has an expectation of an API to call which does affect user behavior so it could be useful. If this was truly our codebase, I'd just test the PizzaOfTheDay component and call it good. But if we used this hook in lots of places, I'd probably a test just for it.
89+
- Some people think this is too into the implementation details and I half agree. However it is useful from the perspective that this hook needs to work in a certain way and it has an expectation of an API to call which does affect user behavior so it could be useful. If this was truly our codebase, I'd just test the PizzaOfTheDay component and call it good. But if we used this hook in lots of places, I'd probably a test just for it.

0 commit comments

Comments
 (0)