1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

test fixes

This commit is contained in:
Matthias Kretschmann 2019-09-12 11:33:20 +02:00
parent 821f80da0f
commit 12f6cfcb80
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 2 additions and 6 deletions

View File

@ -33,6 +33,7 @@ const MetaFixedItem = ({ name, value }: { name: string; value: string }) => (
export default function AssetDetails({ metadata, ddo }: AssetDetailsProps) {
const { base } = metadata
const price = base.price && Web3.utils.fromWei(base.price.toString())
const metaFixed = [
{
@ -52,11 +53,7 @@ export default function AssetDetails({ metadata, ddo }: AssetDetailsProps) {
},
{
name: 'Price',
value: `${
base.price === '0'
? 0
: Web3.utils.fromWei(base.price.toString())
} OCEAN`,
value: `${price === '0' ? 0 : price} OCEAN`,
show: allowPricing
}
]

View File

@ -16,6 +16,5 @@ describe('Details', () => {
/>
)
expect(container.firstChild).toBeInTheDocument()
expect(container.querySelector('.loader')).toBeInTheDocument()
})
})