import { ViewMyNftsAsset } from 'nft/components/profile/view/ViewMyNftsAsset'
import { TEST_NFT_WALLET_ASSET } from 'test-utils/nft/fixtures'
import { render } from 'test-utils/render'

describe('NftCard', () => {
  it('renders correctly', () => {
    // todo: remove once zustand usage has been update such that `shallow` is no longer used
    jest.spyOn(console, 'warn').mockImplementation(jest.fn)
    const { asFragment } = render(
      <ViewMyNftsAsset
        asset={TEST_NFT_WALLET_ASSET}
        mediaShouldBePlaying={false}
        setCurrentTokenPlayingMedia={() => undefined}
        hideDetails={false}
      />
    )
    expect(asFragment()).toMatchSnapshot()
  })
})
