Skip to content

Commit 5dd53eb

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

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

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

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

109
import UserImage from '../../../../views/Account/partials/UserImage.vue'
1110

12-
vi.mock('@nextcloud/l10n', () => createL10nMock())
11+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n())
1312

1413
describe('UserImage.vue', () => {
1514
it('renders the profile picture heading and passes the user data to the avatar', () => {

0 commit comments

Comments
 (0)