mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
Fix PendingLedgerVersionError message and export FormattedTransactionType (#941)
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
|
||||
|
||||
export {RippleAPI} from './api'
|
||||
|
||||
export {
|
||||
FormattedTransactionType
|
||||
} from './transaction/types'
|
||||
|
||||
// Broadcast api is experimental
|
||||
export {RippleAPIBroadcast} from './broadcast'
|
||||
|
||||
@@ -1629,6 +1629,8 @@ describe('RippleAPI', function () {
|
||||
assert(false, 'Should throw PendingLedgerVersionError');
|
||||
}).catch(error => {
|
||||
assert(error instanceof this.api.errors.PendingLedgerVersionError);
|
||||
assert.strictEqual(error.message, 'maxLedgerVersion is greater than server\'s'
|
||||
+ ' most recent validated ledger')
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user