Skip to content

Commit 8cadeca

Browse files
test: standardize l10n mock usage in DownloadBinaries.spec.ts
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent dad6f5a commit 8cadeca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

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

66
import { beforeEach, describe, expect, it, vi } from 'vitest'
7-
import { createL10nMock, interpolateL10n } from '../../testHelpers/l10n.js'
7+
import { interpolateL10n } from '../../testHelpers/l10n.js'
88
import { mount } from '@vue/test-utils'
99

1010
import DownloadBinaries from '../../../views/Settings/DownloadBinaries.vue'
@@ -13,7 +13,7 @@ const generateOcsUrlMock = vi.fn((path: string) => path)
1313
const useConfigureCheckStoreMock = vi.fn()
1414
const listenMock = vi.fn()
1515

16-
vi.mock('@nextcloud/l10n', () => createL10nMock({
16+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n({
1717
t: (_app: string, text: string, params?: Record<string, string>) => interpolateL10n(text, params),
1818
}))
1919

0 commit comments

Comments
 (0)