Skip to content

Commit 845af5b

Browse files
test: standardize l10n mock usage in Account.spec.ts
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent df42a92 commit 845af5b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tests/views/Account/Account.spec.ts

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

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

109
import Account from '../../../views/Account/Account.vue'
1110

12-
vi.mock('@nextcloud/l10n', () => createL10nMock())
11+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n())
1312

1413
vi.mock('@nextcloud/auth', () => ({
1514
getCurrentUser: vi.fn(() => ({

0 commit comments

Comments
 (0)