Skip to content

Commit 813d428

Browse files
test: standardize l10n mock usage in IdentificationDocuments.spec.ts
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 044b2ec commit 813d428

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

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

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

109
const loadStateMock = vi.fn()
@@ -20,7 +19,7 @@ vi.mock('@nextcloud/axios', () => ({
2019
},
2120
}))
2221

23-
vi.mock('@nextcloud/l10n', () => createL10nMock())
22+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n())
2423

2524
const OCP = {
2625
AppConfig: {

0 commit comments

Comments
 (0)