mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
feat(tickets): first commit, preparePayment and prepareTicket
This commit is contained in:
@@ -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())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user