Skip to content

Commit dab3e31

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

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tests/views/Account/partials/Signature.spec.ts

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

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

@@ -28,7 +27,7 @@ vi.mock('@nextcloud/dialogs', () => ({
2827
showSuccess: vi.fn(),
2928
}))
3029

31-
vi.mock('@nextcloud/l10n', () => createL10nMock())
30+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n())
3231

3332
type SignatureComponent = typeof import('../../../../views/Account/partials/Signature.vue').default
3433

0 commit comments

Comments
 (0)