Skip to content

Commit 199133e

Browse files
authored
Update overview.mdx
1 parent b6bfc08 commit 199133e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/v3/guidelines/smart-contracts/testing/overview.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Writing tests in Blueprint (based on [Sandbox](https://github.com/ton-org/sandbo
4242
it('should execute with success', async () => { // description of the test case
4343
const res = await main.sendMessage(sender.getSender(), toNano('0.05')); // performing an action with contract main and saving result in res
4444

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
4646
from: main.address, // set expected sender for transaction we want to test matcher properties from
4747
success: true // set the desirable result using matcher property success
4848
});
@@ -52,7 +52,7 @@ it('should execute with success', async () => { //
5252
```
5353

5454

55-
### Writing Tests for Complex Assertion
55+
### Writing Tests for Complex Assertions
5656

5757
The basic workflow of creating a test is:
5858
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](
8181

8282
#### Extract SendMode
8383

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:
8585

8686
```ts
8787
const re = await blockchain.executor.runTransaction({
@@ -122,7 +122,7 @@ Learn more about testing from the most valuable community tutorials on TON:
122122

123123
## Examples
124124

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.
126126

127127
* [liquid-staking-contract sandbox tests](https://github.com/ton-blockchain/liquid-staking-contract/tree/main/tests)
128128
* [governance_tests](https://github.com/Trinketer22/governance_tests/blob/master/config_tests/tests/)

0 commit comments

Comments
 (0)