Skip to content

Commit 426a282

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

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tests/views/Account/partials/ManagePassword.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, beforeEach, 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

@@ -25,7 +24,7 @@ vi.mock('../../../../store/signMethods.js', () => ({
2524
}),
2625
}))
2726

28-
vi.mock('@nextcloud/l10n', () => createL10nMock())
27+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n())
2928

3029
type ManagePasswordComponent = typeof import('../../../../views/Account/partials/ManagePassword.vue').default
3130

0 commit comments

Comments
 (0)