We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fcf2b4 commit b685ea4Copy full SHA for b685ea4
1 file changed
src/tests/views/UploadCertificate.spec.ts
@@ -4,6 +4,7 @@
4
*/
5
6
import { beforeEach, describe, expect, it, vi } from 'vitest'
7
+import { createL10nMock } from '../testHelpers/l10n.js'
8
import { mount } from '@vue/test-utils'
9
import axios from '@nextcloud/axios'
10
@@ -20,15 +21,7 @@ const signMethodsStoreMock = {
20
21
const showSuccessMock = vi.fn()
22
const showErrorMock = vi.fn()
23
-vi.mock('@nextcloud/l10n', () => ({
24
- t: vi.fn((_app: string, text: string) => text),
25
- translate: vi.fn((_app: string, text: string) => text),
26
- translatePlural: vi.fn((_app: string, singular: string, plural: string, count: number) => (count === 1 ? singular : plural)),
27
- n: vi.fn((_app: string, singular: string, plural: string, count: number) => (count === 1 ? singular : plural)),
28
- getLanguage: vi.fn(() => 'en'),
29
- getLocale: vi.fn(() => 'en'),
30
- isRTL: vi.fn(() => false),
31
-}))
+vi.mock('@nextcloud/l10n', () => createL10nMock())
32
33
vi.mock('@nextcloud/axios', () => ({
34
default: {
0 commit comments