diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-01-03 14:42:06 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-01-03 14:42:06 +0100 |
commit | fd2cd9c383b07cd681c18137396deae025d98047 (patch) | |
tree | 05de454bb6fc0fcb95b66b6ef87bcd555e81b58c /src/wallet-test.ts | |
parent | eb689d60aca8fc80e27ea60c4e4d7e848b01bea9 (diff) | |
download | wallet-core-fd2cd9c383b07cd681c18137396deae025d98047.tar.xz |
fix lint issues and separate message types into multiple files
Diffstat (limited to 'src/wallet-test.ts')
-rw-r--r-- | src/wallet-test.ts | 18 |
1 files changed, 12 insertions, 6 deletions
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), }, }; |