diff --git a/tests/unit/components/NcDateTime/NcDateTime.spec.js b/tests/unit/components/NcDateTime/NcDateTime.spec.js index 0cd58f1200..8091a3c408 100644 --- a/tests/unit/components/NcDateTime/NcDateTime.spec.js +++ b/tests/unit/components/NcDateTime/NcDateTime.spec.js @@ -71,18 +71,18 @@ describe('NcDateTime.vue', () => { expect(wrapper.element.textContent).toMatch(wrapper.element.getAttribute('title')) }) - describe('Work with different locales', () => { + describe('Work with different languages', () => { beforeAll(() => { - // mock the locale - document.documentElement.dataset.locale = 'de_DE' + // mock the language + document.documentElement.lang = 'de' }) afterAll(() => { // revert mock - document.documentElement.dataset.locale = 'en' + document.documentElement.lang = 'en' }) /** - * Use German locale as it uses a different date format than English + * Use German language as it uses a different date format than English */ it('', () => { const time = Date.UTC(2023, 5, 23, 14, 30)