Skip to content

Commit

Permalink
Removed unnecessary properties from wallet address test file
Browse files Browse the repository at this point in the history
  • Loading branch information
oana-lolea committed Nov 5, 2024
1 parent eb0ba90 commit 24c55c4
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions packages/backend/src/graphql/resolvers/wallet_address.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,20 +725,9 @@ describe('Wallet Address Resolvers', (): void => {
`(
'Can get a wallet address by its url (publicName: $publicName)',
async ({ publicName }): Promise<void> => {
const walletProp01 = new WalletAddressAdditionalProperty()
walletProp01.fieldKey = 'key-test-query-one'
walletProp01.fieldValue = 'value-test-query'
walletProp01.visibleInOpenPayments = true
const walletProp02 = new WalletAddressAdditionalProperty()
walletProp02.fieldKey = 'key-test-query-two'
walletProp02.fieldValue = 'value-test-query'
walletProp02.visibleInOpenPayments = false
const additionalProperties = [walletProp01, walletProp02]

const walletAddress = await createWalletAddress(deps, {
publicName,
createLiquidityAccount: true,
additionalProperties
createLiquidityAccount: true
})
const args = { url: walletAddress.url }
const query = await appContainer.apolloClient
Expand Down Expand Up @@ -782,21 +771,7 @@ describe('Wallet Address Resolvers', (): void => {
scale: walletAddress.asset.scale
},
url: walletAddress.url,
publicName: publicName ?? null,
additionalProperties: [
{
__typename: 'AdditionalProperty',
key: walletProp01.fieldKey,
value: walletProp01.fieldValue,
visibleInOpenPayments: walletProp01.visibleInOpenPayments
},
{
__typename: 'AdditionalProperty',
key: walletProp02.fieldKey,
value: walletProp02.fieldValue,
visibleInOpenPayments: walletProp02.visibleInOpenPayments
}
]
publicName: publicName ?? null
})
}
)
Expand Down

0 comments on commit 24c55c4

Please sign in to comment.