feat(tickets): first commit, preparePayment and prepareTicket

This commit is contained in:
Javi
2020-11-05 12:41:54 +01:00
parent 382cf4cb1f
commit c7e08378ac
20 changed files with 249 additions and 10 deletions

View File

@@ -348,6 +348,16 @@ describe('integration tests', function() {
})
})
it('ticket', function() {
return this.api.getLedgerVersion().then(ledgerVersion => {
return this.api
.prepareTicket(address, 1, instructions)
.then(prepared =>
testTransaction(this, 'ticket', ledgerVersion, prepared)
)
})
})
it('isConnected', function() {
assert(this.api.isConnected())
})