|
2 | 2 | title: Unit Testing Framework |
3 | 3 | --- |
4 | 4 |
|
5 | | -Learn how to use Matchstick, a unit testing framework developed by [LimeChain](https://limechain.tech/). Matchstick enables subgraph developers to test their mapping logic in a sandboxed environment and sucessfully deploy their subgraphs. |
| 5 | +Learn how to use Matchstick, a unit testing framework developed by [LimeChain](https://limechain.tech/). Matchstick enables subgraph developers to test their mapping logic in a sandboxed environment and successfully deploy their subgraphs. |
6 | 6 |
|
7 | 7 | ## Benefits of Using Matchstick |
8 | 8 |
|
@@ -392,7 +392,7 @@ describe('handleUpdatedGravatars', () => { |
392 | 392 | gravatar.save() |
393 | 393 | }) |
394 | 394 |
|
395 | | - test('Upates the displayName', () => { |
| 395 | + test('Updates the displayName', () => { |
396 | 396 | assert.fieldEquals('Gravatar', '0x0', 'displayName', 'First Gravatar') |
397 | 397 |
|
398 | 398 | // code that should update the displayName to 1st Gravatar |
@@ -441,7 +441,7 @@ describe("handleNewGravatar", () => { |
441 | 441 | }) |
442 | 442 |
|
443 | 443 | describe("handleUpdatedGravatar", () => { |
444 | | - test("Upates the displayName", () => { |
| 444 | + test("Updates the displayName", () => { |
445 | 445 | assert.fieldEquals("Gravatar", "0x0", "displayName", "First Gravatar") |
446 | 446 |
|
447 | 447 | // code that should update the displayName to 1st Gravatar |
@@ -481,7 +481,7 @@ describe("handleUpdatedGravatar", () => { |
481 | 481 | store.remove("Gravatar", "0x0") |
482 | 482 | }) |
483 | 483 |
|
484 | | - test("Upates the displayName", () => { |
| 484 | + test("Updates the displayName", () => { |
485 | 485 | assert.fieldEquals("Gravatar", "0x0", "displayName", "First Gravatar") |
486 | 486 |
|
487 | 487 | // code that should update the displayName to 1st Gravatar |
@@ -603,7 +603,7 @@ export function createNewGravatarEvent( |
603 | 603 | newGravatarEvent.parameters = new Array() |
604 | 604 | let idParam = new ethereum.EventParam('id', ethereum.Value.fromI32(id)) |
605 | 605 | let addressParam = new ethereum.EventParam( |
606 | | - 'ownderAddress', |
| 606 | + 'ownerAddress', |
607 | 607 | ethereum.Value.fromAddress(Address.fromString(ownerAddress)), |
608 | 608 | ) |
609 | 609 | let displayNameParam = new ethereum.EventParam('displayName', ethereum.Value.fromString(displayName)) |
@@ -1160,7 +1160,7 @@ test('ethereum/contract dataSource creation example', () => { |
1160 | 1160 |
|
1161 | 1161 | #### Testing `file/ipfs` templates |
1162 | 1162 |
|
1163 | | -Similarly to contract dynamic data sources, users can test test file datas sources and their handlers |
| 1163 | +Similarly to contract dynamic data sources, users can test test file data sources and their handlers |
1164 | 1164 |
|
1165 | 1165 | ##### Example `subgraph.yaml` |
1166 | 1166 |
|
|
0 commit comments