Skip to content

Commit

Permalink
updated code block testing example
Browse files Browse the repository at this point in the history
  • Loading branch information
jaojeda committed Nov 10, 2023
1 parent 59701ee commit 9aa5a81
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions docs/2.develop/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,11 @@ Sandbox testing is important because it allows you test all methods on your cont

Before digging in 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
each `.rs` file.

<CodeTabs>
<Language value="🦀 Rust" language="rust">
<Language value="🌐 JavaScript" language="js">
<Github fname="lib.rs"
url="https://github.com/near-examples/hello-near-rs/blob/main/contract/src/lib.rs"
start="46" end="58" />
url="https://github.com/near/create-near-app/blob/master/templates/sandbox-tests/sandbox-ts/src/main.ava.ts"
start="33" end="44" />
</Language>
</CodeTabs>

Expand Down

0 comments on commit 9aa5a81

Please sign in to comment.