mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
test: SignerListSet transaction integration tests (#1621)
* add tests * clean up helper functions * fix account funding * remove unneeded method * use new wallets for each test * automatically fund wallets * fix TODO
This commit is contained in:
40
test/integration/transactions/signerListSet.ts
Normal file
40
test/integration/transactions/signerListSet.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import _ from 'lodash'
|
||||
import { SignerListSet } from 'xrpl-local/models/transactions'
|
||||
|
||||
import serverUrl from '../serverUrl'
|
||||
import { setupClient, suiteClientSetup, teardownClient } from '../setup'
|
||||
import { testTransaction } from '../utils'
|
||||
|
||||
// how long before each test case times out
|
||||
const TIMEOUT = 20000
|
||||
|
||||
describe('SignerListSet', function () {
|
||||
this.timeout(TIMEOUT)
|
||||
|
||||
before(suiteClientSetup)
|
||||
beforeEach(_.partial(setupClient, serverUrl))
|
||||
afterEach(teardownClient)
|
||||
|
||||
it('base', async function () {
|
||||
const tx: SignerListSet = {
|
||||
TransactionType: 'SignerListSet',
|
||||
Account: this.wallet.getClassicAddress(),
|
||||
SignerEntries: [
|
||||
{
|
||||
SignerEntry: {
|
||||
Account: 'r5nx8ZkwEbFztnc8Qyi22DE9JYjRzNmvs',
|
||||
SignerWeight: 1,
|
||||
},
|
||||
},
|
||||
{
|
||||
SignerEntry: {
|
||||
Account: 'r3RtUvGw9nMoJ5FuHxuoVJvcENhKtuF9ud',
|
||||
SignerWeight: 1,
|
||||
},
|
||||
},
|
||||
],
|
||||
SignerQuorum: 2,
|
||||
}
|
||||
await testTransaction(this.client, tx, this.wallet)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user