test: integration tests for CheckCreate, CheckCancel, CheckCash (#1664)

* test checkCreate

* test CheckCancel

* test CheckCash

* add browser tests
This commit is contained in:
Mayukha Vadari
2021-09-24 12:29:41 -04:00
parent 564001515d
commit 5d67f14ea3
7 changed files with 204 additions and 7 deletions

View File

@@ -84,7 +84,11 @@ export async function testTransaction(
// check that the transaction was successful
assert.equal(response.status, 'success')
assert.equal(response.type, 'response')
assert.equal(response.result.engine_result, 'tesSUCCESS')
assert.equal(
response.result.engine_result,
'tesSUCCESS',
response.result.engine_result_message,
)
// check that the transaction is on the ledger
const signedTx = _.omit(response.result.tx_json, 'hash')