expect current(local) year to be visible in the footer.

This commit is contained in:
Ulf Gebhardt 2023-01-02 17:46:39 +01:00
parent 1553ff0964
commit 77bfa5b5ef
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -32,8 +32,8 @@ describe('ContentFooter', () => {
expect(wrapper.find('div.copyright').exists()).toBeTruthy()
})
it('renders the copyright year', () => {
expect(mocks.$t).toBeCalledWith('footer.copyright.year', { year: 2022 })
it('renders the current year as copyright year', () => {
expect(mocks.$t).toBeCalledWith('footer.copyright.year', { year: new Date().getFullYear() })
})
it('renders a link to Gradido-Akademie', () => {