mars-v2-frontend/__tests__/Footer.test.tsx
2023-05-29 10:20:08 +02:00

17 lines
417 B
TypeScript

import { shallow } from 'enzyme'
import Footer from 'components/Footer'
import Text from 'components/Text'
import packageJSON from '../package.json'
describe('<Footer />', () => {
it('should render correctly', () => {
const wrapper = shallow(<Footer />)
const textComponent = wrapper.find(Text).at(0)
const text = textComponent.dive().text()
expect(text).toBe(`v${packageJSON.version}`)
})
})