Skip to content

Commit 78cfd11

Browse files
test: standardize l10n mock usage in Validation.spec.ts
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 5045469 commit 78cfd11

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tests/views/Settings/Validation.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55

66
import { beforeEach, describe, expect, it, vi } from 'vitest'
7-
import { createL10nMock } from '../../testHelpers/l10n.js'
87
import { flushPromises, mount } from '@vue/test-utils'
98

109
import Validation from '../../../views/Settings/Validation.vue'
@@ -26,7 +25,7 @@ vi.mock('@nextcloud/router', () => ({
2625
generateOcsUrl: vi.fn((path: string) => path),
2726
}))
2827

29-
vi.mock('@nextcloud/l10n', () => createL10nMock())
28+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n())
3029

3130
const appConfigSetValueMock = vi.fn()
3231

0 commit comments

Comments
 (0)