import React from 'react'
import { render } from '@testing-library/react'
import { MemoryRouter } from 'react-router-dom'
import FoodShareAddPage from './FoodShareAdd'

describe('Foodshare Add page', () => {
  it('should able to display the page', async () => {
    const { getByTestId } = render(
      <MemoryRouter>
        <FoodShareAddPage />
      </MemoryRouter>,
    )
    const test = getByTestId('food-share-add-page')

    expect(test).toBeInTheDocument()
  })
})
