From 989b07fb3da8b3fffcb859d10065a83ff2639acc Mon Sep 17 00:00:00 2001 From: rrr523 Date: Fri, 8 Sep 2023 15:44:36 +0800 Subject: [PATCH] test: Test case update --- .../nextjs/src/components/query/index.tsx | 19 ++++++ packages/chain-sdk/src/api/account.ts | 12 ---- .../.env.simple.ts => tests/.env.example.ts} | 0 .../chain-sdk/{src => }/tests/account.spec.ts | 10 --- .../chain-sdk/{src => }/tests/config.spec.ts | 4 +- .../{src => }/tests/parsexml.spec.ts | 4 +- .../chain-sdk/{src => }/tests/policy.spec.ts | 1 - .../chain-sdk/{src => }/tests/query.spec.ts | 0 .../chain-sdk/{src => }/tests/storage.spec.ts | 65 +++++++++++-------- .../chain-sdk/{src => }/tests/utils.spec.ts | 2 +- .../chain-sdk/{src => }/tests/wallet.spec.ts | 2 +- 11 files changed, 63 insertions(+), 56 deletions(-) rename packages/chain-sdk/{src/tests/.env.simple.ts => tests/.env.example.ts} (100%) rename packages/chain-sdk/{src => }/tests/account.spec.ts (78%) rename packages/chain-sdk/{src => }/tests/config.spec.ts (94%) rename packages/chain-sdk/{src => }/tests/parsexml.spec.ts (98%) rename packages/chain-sdk/{src => }/tests/policy.spec.ts (98%) rename packages/chain-sdk/{src => }/tests/query.spec.ts (100%) rename packages/chain-sdk/{src => }/tests/storage.spec.ts (73%) rename packages/chain-sdk/{src => }/tests/utils.spec.ts (96%) rename packages/chain-sdk/{src => }/tests/wallet.spec.ts (98%) diff --git a/examples/nextjs/src/components/query/index.tsx b/examples/nextjs/src/components/query/index.tsx index 45a8b3c1..4e63b53d 100644 --- a/examples/nextjs/src/components/query/index.tsx +++ b/examples/nextjs/src/components/query/index.tsx @@ -122,6 +122,25 @@ export const QueryComponent = () => { const { paymentAccounts } = await client.payment.getPaymentAccountsByOwner({ owner: address, }); + console.log('paymentAccounts', paymentAccounts); + const res = await client.payment.paymentAccount({ + addr: paymentAccounts[0], + }); + console.log('res', res); + }} + > + get paymentAccount + + +
  • +