Skip to content

Commit cf805b0

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

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tests/views/Settings/SignatureHashAlgorithm.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 { flushPromises, mount } from '@vue/test-utils'
98
import axios from '@nextcloud/axios'
109

@@ -22,7 +21,7 @@ vi.mock('@nextcloud/password-confirmation', () => ({
2221
confirmPassword: (...args: unknown[]) => confirmPasswordMock(...args),
2322
}))
2423

25-
vi.mock('@nextcloud/l10n', () => createL10nMock())
24+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n())
2625

2726
vi.mock('@nextcloud/router', () => ({
2827
generateOcsUrl: vi.fn((path: string) => path),

0 commit comments

Comments
 (0)