Skip to content

Commit

Permalink
🤖 ran the prettier script
Browse files Browse the repository at this point in the history
  • Loading branch information
JFWooten4 committed Nov 26, 2024
1 parent 439e9f6 commit 89b29b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/build/guides/testing/unit-tests.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fn test() {
assert_eq!(client.increment(), 3);
}
```

Ref: https://github.com/stellar/soroban-examples/blob/main/increment/src/test.rs

:::tip
Expand All @@ -42,6 +43,7 @@ The Env created at the beginning of the test is not a simulation of the Soroban
It's a simple test, but it's a complete test. There's a full environment setup, used, and torn down in the test, and it happens fast. The Rust test harness runs all the tests for a contract in parallel and each will have its own isolated contract environment.

Most tests, even integration tests and fuzz tests, will look very similar to this unit test. They'll do four things:

1. Create an environment, the `Env`.
2. Register the contract(s) to be tested.
3. Invoke functions using a client.
Expand Down
6 changes: 3 additions & 3 deletions docs/tokens/publishing-asset-info.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ server
networkPassphrase: StellarSdk.Networks.TESTNET,
})
.addOperation(
StellarSdk.Operation.setOptions({
homeDomain: "yourdomain.com",
}),
StellarSdk.Operation.setOptions({
homeDomain: "yourdomain.com",
}),
)
// setTimeout is required for a transaction
.setTimeout(100)
Expand Down

0 comments on commit 89b29b5

Please sign in to comment.