Skip to content

Commit 8b1c163

Browse files
committed
Fix typos in test description of 'AmIRichAlready' tutorial
Corrected two typographical errors in the ## Testing section of the 'AmIRichAlready' contract tutorial: 1. Changed 'to the the AmIRichAlready' to 'for the AmIRichAlready' to clarify the sentence. 2. Fixed 'brake' to 'break' in 'Let's break down this test into parts' for proper grammar.
1 parent 63ccb4d commit 8b1c163

File tree

1 file changed

+2
-2
lines changed
  • src/content/developers/tutorials/waffle-dynamic-mocking-and-testing-calls

1 file changed

+2
-2
lines changed

src/content/developers/tutorials/waffle-dynamic-mocking-and-testing-calls/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ describe("Am I Rich Already", () => {
193193
})
194194
```
195195

196-
Let's write the first test to the the `AmIRichAlready` contract. What do you think our test should be about? Yeah, you're right! We should check if we are already rich :)
196+
Let's write the first test for the `AmIRichAlready` contract. What do you think our test should be about? Yeah, you're right! We should check if we are already rich :)
197197

198198
But wait a second. How will our mocked contract know what values to return? We haven't implemented any logic for the `balanceOf()` function. Again, Waffle can help here. Our mocked contract has some new fancy stuff to it now:
199199

@@ -211,7 +211,7 @@ it("returns false if the wallet has less than 1000000 tokens", async () => {
211211
})
212212
```
213213

214-
Let's brake down this test into parts:
214+
Let's break down this test into parts:
215215

216216
1. We set our mock ERC20 contract to always return balance of 999999 tokens.
217217
2. Check if the `contract.check()` method returns `false`.

0 commit comments

Comments
 (0)