Lints src/wallet and test/wallet (#1600)

* lint src/wallet/index

* lint generateFaucetWallet

* lint tests

* respond to comments

* change max-lines-per-function to 40

* remove * import

* fix TS issues
This commit is contained in:
Mayukha Vadari
2021-09-13 15:45:32 -04:00
parent 3f29e5781d
commit fe919315d4
5 changed files with 244 additions and 157 deletions

View File

@@ -1,8 +1,9 @@
import { assert } from 'chai'
import { getFaucetUrl, FaucetNetwork } from '../src/wallet/generateFaucetWallet'
import { _private } from '../../src/wallet/generateFaucetWallet'
import { setupClient, teardownClient } from '../setupClient'
import { setupClient, teardownClient } from './setupClient'
const { FaucetNetwork, getFaucetUrl } = _private
describe('Get Faucet URL', function () {
beforeEach(setupClient)

View File

@@ -1,6 +1,7 @@
import { assert } from 'chai'
import ECDSA from '../../src/common/ecdsa'
import { Payment } from '../../src/models/transactions'
import Wallet from '../../src/wallet'
/**
@@ -155,7 +156,7 @@ describe('Wallet', function () {
const address = 'rhvh5SrgBL5V8oeV9EpDuVszeJSSCEkbPc'
it('signs a transaction offline', function () {
const txJSON = {
const txJSON: Payment = {
TransactionType: 'Payment',
Account: address,
Destination: 'rQ3PTWGLCbPz8ZCicV5tCX3xuymojTng5r',