Skip to content

Commit 3434487

Browse files
test: standardize l10n mock usage in Validation.spec.ts
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> [skip ci]
1 parent 7f6b1a6 commit 3434487

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tests/views/Validation.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, describe, expect, it, beforeEach, vi } from 'vitest'
7-
import { createL10nMock, interpolateL10n } from '../testHelpers/l10n.js'
7+
import { interpolateL10n } from '../testHelpers/l10n.js'
88
import { shallowMount } from '@vue/test-utils'
99
import axios from '@nextcloud/axios'
1010
import { getCapabilities } from '@nextcloud/capabilities'
@@ -98,7 +98,7 @@ vi.mock('@nextcloud/logger', () => ({
9898
})),
9999
}))
100100

101-
vi.mock('@nextcloud/l10n', () => createL10nMock({
101+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n({
102102
t: (app: string, text: string, vars?: Record<string, string>) => {
103103
return interpolateL10n(text, vars)
104104
},

0 commit comments

Comments
 (0)