diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-12 12:41:00 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-12 12:41:00 +0530 |
commit | f180d0580457e1e9bd502293df327dfe138dd422 (patch) | |
tree | 11b9eecb7a74acf7cfe36ccbc3366905718d8a1d /packages/taler-integrationtests/src/test-withdrawal-manual.ts | |
parent | 0050bf005a40cab3b4fdc43f2960025e8d52e176 (diff) | |
download | wallet-core-f180d0580457e1e9bd502293df327dfe138dd422.tar.gz wallet-core-f180d0580457e1e9bd502293df327dfe138dd422.tar.bz2 wallet-core-f180d0580457e1e9bd502293df327dfe138dd422.zip |
remove excessive namespacing, format
Diffstat (limited to 'packages/taler-integrationtests/src/test-withdrawal-manual.ts')
-rw-r--r-- | packages/taler-integrationtests/src/test-withdrawal-manual.ts | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/packages/taler-integrationtests/src/test-withdrawal-manual.ts b/packages/taler-integrationtests/src/test-withdrawal-manual.ts index afaf41e63..0d09c3e5c 100644 --- a/packages/taler-integrationtests/src/test-withdrawal-manual.ts +++ b/packages/taler-integrationtests/src/test-withdrawal-manual.ts @@ -19,17 +19,21 @@ */ import { runTest, GlobalTestState } from "./harness"; import { createSimpleTestkudosEnvironment } from "./helpers"; -import { walletTypes } from "taler-wallet-core"; import { CoreApiResponse } from "taler-wallet-core/lib/walletCoreApiHandler"; +import { codecForBalancesResponse } from "taler-wallet-core"; /** * Run test for basic, bank-integrated withdrawal. */ runTest(async (t: GlobalTestState) => { - // Set up test environment - const { wallet, bank, exchange, exchangeBankAccount } = await createSimpleTestkudosEnvironment(t); + const { + wallet, + bank, + exchange, + exchangeBankAccount, + } = await createSimpleTestkudosEnvironment(t); // Create a withdrawal operation @@ -67,8 +71,8 @@ runTest(async (t: GlobalTestState) => { const balApiResp = await wallet.apiRequest("getBalances", {}); t.assertTrue(balApiResp.type === "response"); - const balResp = walletTypes.codecForBalancesResponse().decode(balApiResp.result); - t.assertAmountEquals("TESTKUDOS:9.72", balResp.balances[0].available) + const balResp = codecForBalancesResponse().decode(balApiResp.result); + t.assertAmountEquals("TESTKUDOS:9.72", balResp.balances[0].available); await t.shutdown(); }); |