mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
* build(deps): bump @types/ws from 7.4.7 to 8.2.0 Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 7.4.7 to 8.2.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws) --- updated-dependencies: - dependency-name: "@types/ws" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * resolve linter error * fix types/ws * fix flaky integration tests - tefPAST_SEQ Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nathan Nichols <natenichols@cox.net>
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import _ from 'lodash'
|
|
|
|
import { AccountDelete } from 'xrpl-local/models/transactions'
|
|
|
|
import serverUrl from '../serverUrl'
|
|
import { setupClient, teardownClient } from '../setup'
|
|
import { generateFundedWallet, ledgerAccept, testTransaction } from '../utils'
|
|
|
|
// how long before each test case times out
|
|
const TIMEOUT = 20000
|
|
|
|
describe('AccountDelete', function () {
|
|
this.timeout(TIMEOUT)
|
|
|
|
beforeEach(_.partial(setupClient, serverUrl))
|
|
afterEach(teardownClient)
|
|
|
|
it('base', async function () {
|
|
const wallet2 = await generateFundedWallet(this.client)
|
|
// to the satisfy the condition that account sequence and current ledger_index should be 256 apart.
|
|
const promises: Array<Promise<void>> = []
|
|
for (let iter = 0; iter < 256; iter += 1) {
|
|
promises.push(ledgerAccept(this.client))
|
|
}
|
|
|
|
await Promise.all(promises)
|
|
const tx: AccountDelete = {
|
|
TransactionType: 'AccountDelete',
|
|
Account: this.wallet.getClassicAddress(),
|
|
Destination: wallet2.getClassicAddress(),
|
|
}
|
|
await testTransaction(this.client, tx, this.wallet)
|
|
})
|
|
})
|