Skip to content

Commit 68168f8

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

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tests/views/ResetPassword.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 { shallowMount } from '@vue/test-utils'
98
import ResetPassword from '../../views/ResetPassword.vue'
109

@@ -44,7 +43,7 @@ vi.mock('@nextcloud/router', () => ({
4443
generateOcsUrl: vi.fn((path: string) => path),
4544
}))
4645

47-
vi.mock('@nextcloud/l10n', () => createL10nMock())
46+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n())
4847

4948
describe('ResetPassword.vue', () => {
5049
beforeEach(() => {

0 commit comments

Comments
 (0)