2023-05-30 09:16:13 +00:00
|
|
|
import { render } from '@testing-library/react'
|
2023-05-12 07:55:51 +00:00
|
|
|
|
|
|
|
import Footer from 'components/Footer'
|
|
|
|
|
|
|
|
import packageJSON from '../package.json'
|
|
|
|
|
|
|
|
describe('<Footer />', () => {
|
2023-05-30 09:16:13 +00:00
|
|
|
it('should render package version correctly', () => {
|
|
|
|
const { getByText, container } = render(<Footer />)
|
|
|
|
const versionText = getByText(`v${packageJSON.version}`)
|
2023-05-12 07:55:51 +00:00
|
|
|
|
2023-05-30 09:16:13 +00:00
|
|
|
expect(versionText).toBeInTheDocument()
|
2023-05-12 07:55:51 +00:00
|
|
|
})
|
|
|
|
})
|