mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-12-08 00:44:30 +01:00
19 lines
453 B
TypeScript
19 lines
453 B
TypeScript
|
import { Footer } from 'components/Footer'
|
||
|
|
||
|
describe('<Footer />', () => {
|
||
|
it('should render with appropriate link tag version', () => {
|
||
|
const version = '1.0.0'
|
||
|
cy.mount(<Footer version={version} />)
|
||
|
cy.contains('Divlo')
|
||
|
.get('[data-cy=version-link]')
|
||
|
.should('have.text', version)
|
||
|
.should(
|
||
|
'have.attr',
|
||
|
'href',
|
||
|
`https://github.com/Divlo/Divlo/releases/tag/v${version}`
|
||
|
)
|
||
|
})
|
||
|
})
|
||
|
|
||
|
export {}
|