fix(tests): more unit tests

This commit is contained in:
Javi
2020-11-06 10:44:46 +01:00
parent c7e08378ac
commit fd0f64fe54
35 changed files with 429 additions and 22 deletions

View File

@@ -28,5 +28,19 @@ export default <TestSuite>{
requests.prepareCheckCreate.full
)
assertResultMatch(result, responses.prepareCheckCreate.full, 'prepare')
},
'prepareCheckCreate with ticket': async (api, address) => {
const localInstructions = {
...instructionsWithMaxLedgerVersionOffset,
maxFee: '0.000012',
ticketSequence: 23
}
const result = await api.prepareCheckCreate(
address,
requests.prepareCheckCreate.normal,
localInstructions
)
assertResultMatch(result, responses.prepareCheckCreate.ticket, 'prepare')
}
}