fix: make docs not output confusing information in xrpl client (#2337)

* fix: make docs not output confusing information in xrpl client

---------

Co-authored-by: Jackson Mills <jmills@ripple.com>
Co-authored-by: Caleb Kniffen <ckniffen@ripple.com>
This commit is contained in:
justinr1234
2023-08-14 19:11:41 -05:00
committed by Caleb Kniffen
parent 21c2423bac
commit 3b70a3b919
28 changed files with 1718 additions and 879 deletions

View File

@@ -2,6 +2,7 @@ import { assert } from 'chai'
import { RippledError } from '../src'
import rippledFixtures from './fixtures/rippled'
import {
setupClient,
teardownClient,
@@ -22,7 +23,11 @@ describe('mock rippled tests', function () {
}
await assertRejects(
testContext.client.request({ command: 'account_info' }),
testContext.client.request({
command: 'account_info',
account:
rippledFixtures.account_info.normal.result.account_data.Account,
}),
RippledError,
)
})
@@ -44,7 +49,11 @@ describe('mock rippled tests', function () {
return { data: request }
})
await assertRejects(
testContext.client.request({ command: 'account_info', account: '' }),
testContext.client.request({
command: 'account_info',
account:
rippledFixtures.account_info.normal.result.account_data.Account,
}),
RippledError,
)
})