Skip to content

Commit 82dd698

Browse files
test: standardize l10n mock usage in LegalInformation.spec.ts
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent d7dbe05 commit 82dd698

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tests/views/Settings/LegalInformation.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 { mount, flushPromises } from '@vue/test-utils'
98

109
type LegalInformationVm = {
@@ -13,7 +12,7 @@ type LegalInformationVm = {
1312

1413
let LegalInformation: unknown
1514

16-
vi.mock('@nextcloud/l10n', () => createL10nMock())
15+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n())
1716

1817
vi.mock('@nextcloud/initial-state', () => ({
1918
loadState: vi.fn((app, key, defaultValue) => {

0 commit comments

Comments
 (0)