Skip to content

Commit 9a46a7c

Browse files
committed
fix: correct typo in README regarding the guarantee of asynchronous behavior
1 parent 8666d00 commit 9a46a7c

File tree

1 file changed

+1
-1
lines changed
  • exercises/03.assertions/04.problem.retryable-assertions

1 file changed

+1
-1
lines changed

exercises/03.assertions/04.problem.retryable-assertions/README.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const response = await fetch('/api/songs')
1111
await expect(response.json()).resolves.toEqual(favoriteSongs)
1212
```
1313

14-
> While fetching the list of songs takes time, that eventuality is represented as a Promise that you can `await`. This guaratees that your test will not continue until the data is fetched. Quite the same applies to reading the response body stream.
14+
> While fetching the list of songs takes time, that eventuality is represented as a Promise that you can `await`. This guarantees that your test will not continue until the data is fetched. Quite the same applies to reading the response body stream.
1515
1616
But not all systems are designed like that. And even the systems that _are_ designed like that may not expose you the right Promises to await.
1717

0 commit comments

Comments
 (0)