Skip to content

Commit

Permalink
[gh-2473] add asserts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Feliciss authored and feliciss committed Aug 22, 2024
1 parent e73b8a5 commit c3f0893
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/testsuite/features/cmd.feature
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ Feature: Rooch CLI integration tests
Then cmd: "transaction get-transactions-by-order --cursor 0 --limit 1 --descending-order false"
Then cmd: "transaction get-transactions-by-hash --hashes {{$.transaction[-1].data[0].execution_info.tx_hash}}"
Then cmd: "transaction build --function rooch_framework::empty::empty --json"
Then assert: "'{{$.transaction[-1]}}' == '0ea3bb55c14aec8e074cd48c6a850526aa46965e176df53fadb433adeeeb56570000000000000000040000000000000000e1f5050000000001000000000000000000000000000000000000000000000000000000000000000305656d70747905656d7074790000'"
Then cmd: "transaction sign --tx-hex {{$.transaction[-1]}} --json
Then assert: "'{{$.transaction[-1]}}' not_contains error"
Then cmd: "transaction sign --tx-hex {{$.transaction[-1]}} --json"
Then assert: "'{{$.transaction[-1]}}' not_contains error"

# alias tx for transaction
Then cmd: "tx get-transactions-by-order --cursor 1 --limit 2 --descending-order true"
Expand Down

0 comments on commit c3f0893

Please sign in to comment.