Skip to content

Commit

Permalink
Update quickstart.md (#1721)
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero authored Feb 9, 2024
1 parent a00e62e commit a119df4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/2.develop/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ The contract presents 2 methods: `set_greeting` and `get_greeting`. The first on

## Testing

When writing smart contracts it is very important to test all methods exhaustively. This
project has both **unit** and **integration** tests. Before digging in their code,
When writing smart contracts, it is very important to test all methods exhaustively. This
project has both **unit** and **integration** tests. Before digging into their code,
go ahead and execute them using the command `npm run test`.

### Unit test
Unit tests check individual functions in the smart contract. They are written in the
same language than the smart contract. If your contract is in Rust you will find the tests at the bottom of
same language as the smart contract. If your contract is in Rust, you will find the tests at the bottom of
each `.rs` file.

<CodeTabs>
Expand All @@ -107,8 +107,8 @@ each `.rs` file.

### Integration test

Integration tests can be written in both Javascript and Rust. They work by deploying the contract in a **sandbox** and executing methods on it.
In this way, integration tests simulate interactions from users in a realistic scenario.
Integration tests can be written in both Javascript and Rust. They work by deploying the contract in a **sandbox** and executing its methods.
In this way, integration tests simulate user interactions in a realistic scenario.
You will find the integration tests for `hello-near` in `integration-tests/`.

<CodeTabs>
Expand All @@ -125,8 +125,8 @@ You will find the integration tests for `hello-near` in `integration-tests/`.

That's it for our first quickstart tutorial. You have now seen a fully functional contract with a minimal user interface and testing.

Go ahead and check other [examples](/tutorials/examples/guest-book) or proceed straight to the [Develop section](./contracts/anatomy.md) to know how to write your own contract.
Go ahead and check other [examples](/tutorials/examples/guest-book) or proceed straight to the [Develop section](./contracts/anatomy.md) to learn how to write your own contract.

If you have any questions, do not hesitate in joining us on [Discord](https://near.chat). We regularly host Office Hours, in which you can join our voice channel and ask questions.
If you have any questions, do not hesitate to join us on [Discord](https://near.chat). We regularly host Office Hours, in which you can join our voice channel and ask questions.

Happy coding!

0 comments on commit a119df4

Please sign in to comment.