mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 20:25:48 +00:00
ci: run lint tests (#1603)
* turn on lint tests * remove tsc * fix errors in src/utils/hashes * fix linter errors in src/utils * fix lint issues in test/ * resolve lint issues in src/client * resolve dependency cycle * resolve other linting issues in src/models * resolve rest of linting issues * fix tests * fix linting errors in test/integration * fix rest of linting issues * fix test name
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { ValidationError, XrplError } from 'xrpl-local'
|
||||
|
||||
import { computeLedgerHash } from '../../src/utils'
|
||||
import requests from '../fixtures/requests'
|
||||
import responses from '../fixtures/responses'
|
||||
@@ -23,7 +24,7 @@ describe('computeLedgerHash', function () {
|
||||
)
|
||||
|
||||
ledger.parent_close_time = ledger.close_time
|
||||
let hash
|
||||
let hash: string
|
||||
try {
|
||||
hash = computeLedgerHash(ledger, { computeTreeHashes: true })
|
||||
} catch (error) {
|
||||
@@ -139,6 +140,7 @@ describe('computeLedgerHash', function () {
|
||||
...REQUEST_FIXTURES.header,
|
||||
transaction_hash:
|
||||
'325EACC5271322539EEEC2D6A5292471EF1B3E72AE7180533EFC3B8F0AD435C9',
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- okay for tests
|
||||
transactions: REQUEST_FIXTURES.transactions as any,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user