Skip to content

Commit fe79c26

Browse files
authored
fixes (#1074)
1 parent 21d2489 commit fe79c26

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

docs/concepts/data-collections.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ map.getSome(key)
252252
253253
[ [SDK source](https://github.com/near/near-sdk-rs/blob/master/near-sdk/src/collections/vector.rs) ]
254254

255-
[ [Implementation](https://docs.rs/near-sdk/latest/near_sdk/collections/struct.Vector.html) ]
255+
[ [Implementation](https://docs.rs/near-sdk/latest/near_sdk/collections/vector/struct.Vector.html) ]
256256

257257
---
258258

@@ -350,7 +350,7 @@ pub fn get_unordered_map(&self, key: String) -> String {
350350

351351
[ [SDK source](https://github.com/near/near-sdk-rs/tree/master/near-sdk/src/collections/unordered_map) ]
352352

353-
[ [Implementation](https://docs.rs/near-sdk/latest/near_sdk/collections/struct.UnorderedMap.html) ]
353+
[ [Implementation](https://docs.rs/near-sdk/latest/near_sdk/collections/unordered_map/struct.UnorderedMap.html) ]
354354

355355
---
356356

docs/develop/contracts/rust/testing.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ sidebar_label: Testing
66

77
There are a couple of ways to test Rust smart contracts in NEAR.
88
- [Unit tests](#unit-tests)
9-
- [Simulation tests](#simulation-tests)
109
- [End-to-end tests](#end-to-end-tests)
1110

1211
This document will cover the first two in detail, and link to various code examples to refer to. Keep in mind that there are some simple examples located at <a href="https://near.dev" target="_blank">our examples page</a> that implement these tests.
@@ -121,17 +120,7 @@ The `--nocapture` flag will make sure that output from assertions and macros lik
121120

122121
In summary, unit tests are a great way to make sure that the methods and data structures in your smart contract are working as intended.
123122

124-
## Simulation tests {#simulation-tests}
125-
126-
Within [`near-sdk-rs`](https://github.com/near/near-sdk-rs) there is a library [`near-sdk-sim`](https://github.com/near/near-sdk-rs/tree/master/near-sdk-sim) that allows simulation testing for Rust smart contracts. With this utility you can:
127-
128-
- Test cross-contract calls
129-
- Profile gas & storage usage for your contract
130-
- Inspect intermediate state of all calls within complex transactions
131-
132-
For a step-by-step guide and more information, see the [README](https://github.com/near/near-sdk-rs/tree/master/near-sdk-sim) file for `near-sdk-sim`.
133-
134-
## End-to-end tests
123+
## End-to-end tests
135124

136125
This is where the rubber meets the road. End-to-end tests will help determine if the application is behaving as expected allowing us to see the entire flow of an app from start to finish. Unlike the previously mentioned tests, here we will use a live network (i.e. "testnet") (with actual tokens) to view (in real time) how our code behaves and any problems we may encounter. There many are testing applications that can accomplish this, but for our purposes we will focus on the [Jest testing suite](https://jestjs.io/).
137126

docs/tutorials/contracts/nfts/minting-nfts.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ NFT Storage offers free decentralized storage and bandwidth for NFTs on [IPFS](h
6262
6363
## Non-fungible Token contract {#non-fungible-token-contract}
6464

65-
[This repository](https://github.com/near-examples/NFT) includes an example implementation of a [non-fungible token] contract which uses [near-contract-standards] and [simulation] tests.
65+
[This repository](https://github.com/near-examples/NFT) includes an example implementation of a [non-fungible token] contract which uses [near-contract-standards] and simulation tests.
6666

6767
[non-fungible token]: https://nomicon.io/Standards/NonFungibleToken
6868
[near-contract-standards]: https://github.com/near/near-sdk-rs/tree/master/near-contract-standards
69-
[simulation]: https://github.com/near/near-sdk-rs/tree/master/near-sdk-sim
7069

7170
### Clone the NFT repository {#clone-the-nft-repository}
7271

0 commit comments

Comments
 (0)