Skip to content

Commit 4adddeb

Browse files
authored
Merge to master from develop (#38)
* added the list of test accounts to chain.md and usage.md * updated description of timeAdded in time.md * bumped to version 0.3.0
1 parent 225df35 commit 4adddeb

4 files changed

Lines changed: 25 additions & 4 deletions

File tree

docs/api/chain.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,17 @@ Local port number the RPC api is bound to
2222

2323
## Methods
2424
### static async setupChain(chainName: string): Promise<Chain>
25-
Setup new testing chain, setup chain docker instance, initialize api client, create 10 test accounts
25+
Setup new testing chain, setup chain docker instance, initialize api client, creates the following 10 test accounts:
26+
- acc11.test
27+
- acc12.test
28+
- acc13.test
29+
- acc14.test
30+
- acc15.test
31+
- acc21.test
32+
- acc22.test
33+
- acc23.test
34+
- acc24.test
35+
- acc25.test
2636

2737
Valid chainName values: WAX, EOS and TLOS
2838

docs/api/time.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The Time class allows the manipulation of blocktime. These functions only add t
66
### chain: Chain
77
Reference to the chain instance
88
### timeAdded: number
9-
Record of time added to chain
9+
The total number of seconds that have been skipped in the chain
1010

1111
## Constructor
1212
**constructor(chain: Chain): Time**
@@ -18,4 +18,4 @@ Incrementally increase time of chain.
1818

1919
### async increaseTo(time: number): Promise<number>
2020

21-
Increase time of chain to specific time point. T
21+
Increase time of chain to specific time point T

docs/tutorial/usage.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ const account2 = chain.accounts[2];
2020
// create account
2121
let newAccount = await chain.system.createAccount("newaccount");
2222
```
23+
The following test accounts are created automatically:
24+
- acc11.test
25+
- acc12.test
26+
- acc13.test
27+
- acc14.test
28+
- acc15.test
29+
- acc21.test
30+
- acc22.test
31+
- acc23.test
32+
- acc24.test
33+
- acc25.test
2334

2435
## Contracts
2536

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "qtest-js",
3-
"version": "0.2.2",
3+
"version": "0.3.0",
44
"description": "eosio testing library",
55
"main": "dist/index.js",
66
"license": "MIT",

0 commit comments

Comments
 (0)