From fd2cd9c383b07cd681c18137396deae025d98047 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 3 Jan 2018 14:42:06 +0100 Subject: fix lint issues and separate message types into multiple files --- src/wallet-test.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/wallet-test.ts') diff --git a/src/wallet-test.ts b/src/wallet-test.ts index 037cc7592..6b06085c0 100644 --- a/src/wallet-test.ts +++ b/src/wallet-test.ts @@ -15,13 +15,19 @@ */ -import {test} from "ava"; -import * as types from "./types"; +import { test } from "ava"; + +import * as dbTypes from "./dbTypes"; +import * as types from "./walletTypes"; + import * as wallet from "./wallet"; +import { AmountJson} from "./amounts"; +import * as Amounts from "./amounts"; + -function a(x: string): types.AmountJson { - const amt = types.Amounts.parse(x); +function a(x: string): AmountJson { + const amt = Amounts.parse(x); if (!amt) { throw Error("invalid amount"); } @@ -40,7 +46,7 @@ function fakeCwd(current: string, value: string, feeDeposit: string): types.Coin denomSig: "(mock)", exchangeBaseUrl: "(mock)", reservePub: "(mock)", - status: types.CoinStatus.Fresh, + status: dbTypes.CoinStatus.Fresh, }, denom: { denomPub: "(mock)", @@ -56,7 +62,7 @@ function fakeCwd(current: string, value: string, feeDeposit: string): types.Coin stampExpireLegal: "(mock)", stampExpireWithdraw: "(mock)", stampStart: "(mock)", - status: types.DenominationStatus.VerifiedGood, + status: dbTypes.DenominationStatus.VerifiedGood, value: a(value), }, }; -- cgit v1.2.3