import { screen } from '@testing-library/react'
import { Token } from '@uniswap/sdk-core'
import { ActivitySection } from 'components/Tokens/TokenDetails/ActivitySection'
import { render } from 'test-utils/render'

const mockToken = new Token(1, '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', 18, 'WETH', 'Wrapped Ether')

vi.mock('pages/TokenDetails/TDPContext', () => ({
  useTDPContext: () => {
    return {
      currency: mockToken,
    }
  },
}))

describe('ActivitySection', () => {
  it('has Pools and Transactions tabs', () => {
    render(<ActivitySection />)

    expect(screen.getByText('Pools')).toBeInTheDocument()
    expect(screen.getByText('Transactions')).toBeInTheDocument()
  })
})
