mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 03:35:49 +00:00
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:
@@ -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)
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user