Files
xahau.js/test/integration/transactions/signerListSet.ts
Mayukha Vadari dac8c27b49 test: integration tests for Payment (#1635)
* test payment

* use new helper function elsewhere

* remove unneeded comment
2021-10-04 14:10:13 -04:00

42 lines
1.0 KiB
TypeScript

import _ from 'lodash'
import { SignerListSet } from 'xrpl-local'
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)
})
})