mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-27 23:55:49 +00:00
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:
committed by
Caleb Kniffen
parent
21c2423bac
commit
3b70a3b919
@@ -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,
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user