Skip to content

Commit 3258e3e

Browse files
test: standardize l10n mock usage in FilesListVirtual.spec.ts
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 774bd65 commit 3258e3e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tests/views/FilesList/FilesListVirtual.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 { mount } from '@vue/test-utils'
98

109
import FilesListVirtual from '../../../views/FilesList/FilesListVirtual.vue'
@@ -17,7 +16,7 @@ const userConfigStoreMock = {
1716
files_list_grid_view: false,
1817
}
1918

20-
vi.mock('@nextcloud/l10n', () => createL10nMock())
19+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n())
2120

2221
vi.mock('../../../store/files.js', () => ({
2322
useFilesStore: vi.fn(() => filesStoreMock),

0 commit comments

Comments
 (0)