mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
build: update typescript version (#1601)
This commit is contained in:
committed by
Mayukha Vadari
parent
148cac6f3f
commit
0dc1e08350
@@ -1,6 +1,6 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { ValidationError } from '../../src/common/errors'
|
||||
import { ValidationError, XrplError } from '../../src/common/errors'
|
||||
import { computeLedgerHash } from '../../src/utils'
|
||||
import requests from '../fixtures/requests'
|
||||
import responses from '../fixtures/responses'
|
||||
@@ -27,6 +27,10 @@ describe('computeLedgerHash', function () {
|
||||
try {
|
||||
hash = computeLedgerHash(ledger, { computeTreeHashes: true })
|
||||
} catch (error) {
|
||||
if (!(error instanceof XrplError)) {
|
||||
throw error
|
||||
}
|
||||
|
||||
assert(error instanceof ValidationError)
|
||||
if (error instanceof ValidationError) {
|
||||
assert.strictEqual(
|
||||
|
||||
Reference in New Issue
Block a user