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:
Mayukha Vadari
2021-09-22 16:39:10 -04:00
parent 57a6586898
commit 98c9b9bc14
43 changed files with 258 additions and 558 deletions

View File

@@ -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,
}