mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
* prototype getting ENS names the right decentralized way * get all profile metadata with ENS * refactor account display in context of top sales list * support almost all default text records * refactor text record fetching * more web3 calls reduction * package cleanup * add Publisher component test, mock out ens utils * remove mock to run @utils/ens directly * add Avatar stories * cleanup * rebase fixes * profile loading tweaks * fixes * merge cleanup * remove @ensdomains/ensjs * fetch ENS data from proxy * update avatar tests * tweak error catching for all axios fetches * test tweaks * api path fix * fetching fixes * account switching tweaks * remove unused methods * add ENS fetching tests * jest timeout tweak * update readme
20 lines
688 B
TypeScript
20 lines
688 B
TypeScript
import React from 'react'
|
|
import testRender from '../../../../../.jest/testRender'
|
|
import Avatar from '@shared/atoms/Avatar'
|
|
import { DefaultWithBlockies, CustomSource, Empty } from './index.stories'
|
|
import { render } from '@testing-library/react'
|
|
|
|
describe('Avatar', () => {
|
|
testRender(<Avatar {...DefaultWithBlockies.args} />)
|
|
|
|
it('renders without crashing with custom source', () => {
|
|
const { container } = render(<Avatar {...CustomSource.args} />)
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
})
|
|
|
|
it('renders empty without crashing', () => {
|
|
const { container } = render(<Avatar {...Empty.args} />)
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
})
|
|
})
|