mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge branch 'master' into 2502-adjust-some-texts-and-translations
This commit is contained in:
commit
b36c9a41dc
@ -183,8 +183,8 @@ describe('util/creation', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('has the clock set correctly', () => {
|
it('has the clock set correctly', () => {
|
||||||
const targetMonth = targetDate.getMonth() + 1
|
const targetMonthString =
|
||||||
const targetMonthString = (targetMonth < 10 ? '0' : '') + String(targetMonth)
|
(targetDate.getMonth() + 1 < 10 ? '0' : '') + String(targetDate.getMonth() + 1)
|
||||||
expect(new Date().toISOString()).toContain(
|
expect(new Date().toISOString()).toContain(
|
||||||
`${targetDate.getFullYear()}-${targetMonthString}-${targetDate.getDate()}T23:`,
|
`${targetDate.getFullYear()}-${targetMonthString}-${targetDate.getDate()}T23:`,
|
||||||
)
|
)
|
||||||
|
|||||||
@ -32,8 +32,8 @@ describe('ContentFooter', () => {
|
|||||||
expect(wrapper.find('div.copyright').exists()).toBeTruthy()
|
expect(wrapper.find('div.copyright').exists()).toBeTruthy()
|
||||||
})
|
})
|
||||||
|
|
||||||
it('renders the copyright year', () => {
|
it('renders the current year as copyright year', () => {
|
||||||
expect(mocks.$t).toBeCalledWith('footer.copyright.year', { year: 2023 })
|
expect(mocks.$t).toBeCalledWith('footer.copyright.year', { year: new Date().getFullYear() })
|
||||||
})
|
})
|
||||||
|
|
||||||
it('renders a link to Gradido-Akademie', () => {
|
it('renders a link to Gradido-Akademie', () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user