@@ -42,7 +42,7 @@ Writing tests in Blueprint (based on [Sandbox](https://github.com/ton-org/sandbo
42
42
it (' should execute with success' , async () => { // description of the test case
43
43
const res = await main .sendMessage (sender .getSender (), toNano (' 0.05' )); // performing an action with contract main and saving result in res
44
44
45
- expect (res .transactions ).toHaveTransaction ({ // configure the expected result with expect() function
45
+ expect (res .transactions ).toHaveTransaction ({ // Define the expected result using the expect() function
46
46
from: main .address , // set expected sender for transaction we want to test matcher properties from
47
47
success: true // set the desirable result using matcher property success
48
48
});
@@ -52,7 +52,7 @@ it('should execute with success', async () => { //
52
52
```
53
53
54
54
55
- ### Writing Tests for Complex Assertion
55
+ ### Writing Tests for Complex Assertions
56
56
57
57
The basic workflow of creating a test is:
58
58
1 . Create a specific wrapped ` Contract ` entity using ` blockchain.openContract() ` .
@@ -81,7 +81,7 @@ You can learn the whole list of matcher fields from the [Sandbox documentation](
81
81
82
82
#### Extract SendMode
83
83
84
- To extract the send mode of a sent message you can use the following code:
84
+ To extract the send mode of a message, use the following code:
85
85
86
86
``` ts
87
87
const re = await blockchain .executor .runTransaction ({
@@ -122,7 +122,7 @@ Learn more about testing from the most valuable community tutorials on TON:
122
122
123
123
## Examples
124
124
125
- Check test suites used for TON Ecosystem contracts and learn by examples.
125
+ Explore test suites used in TON ecosystem contracts and learn from examples.
126
126
127
127
* [ liquid-staking-contract sandbox tests] ( https://github.com/ton-blockchain/liquid-staking-contract/tree/main/tests )
128
128
* [ governance_tests] ( https://github.com/Trinketer22/governance_tests/blob/master/config_tests/tests/ )
0 commit comments