Skip to content

Commit 65e4cbe

Browse files
test: standardize l10n mock usage in SigningProgress.spec.ts
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 5f860d4 commit 65e4cbe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tests/components/validation/SigningProgress.spec.ts

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

66
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest'
7-
import { createL10nMock, interpolateL10n } from '../../testHelpers/l10n.js'
7+
import { interpolateL10n } from '../../testHelpers/l10n.js'
88
import type { MockedFunction } from 'vitest'
99
import { mount } from '@vue/test-utils'
1010
import type { VueWrapper } from '@vue/test-utils'
@@ -65,7 +65,7 @@ vi.mock('@nextcloud/axios', () => ({
6565
vi.mock('@nextcloud/router', () => ({
6666
generateOcsUrl: vi.fn((url: string) => url),
6767
}))
68-
vi.mock('@nextcloud/l10n', () => createL10nMock({
68+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n({
6969
t: (_app: string, text: string, vars?: Record<string, unknown>) => interpolateL10n(text, vars),
7070
}))
7171
vi.mock('../../../utils/fileStatus.js', () => ({

0 commit comments

Comments
 (0)