Skip to content

Commit cf91934

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

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

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

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

109
import CrlValidation from '../../../views/Settings/CrlValidation.vue'
@@ -15,7 +14,7 @@ vi.mock('@nextcloud/initial-state', () => ({
1514
loadState: (...args: unknown[]) => loadStateMock(...args),
1615
}))
1716

18-
vi.mock('@nextcloud/l10n', () => createL10nMock())
17+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n())
1918

2019
const OCP = {
2120
AppConfig: {

0 commit comments

Comments
 (0)