Skip to content

Commit 23f116b

Browse files
test: standardize l10n mock usage in FileEntryActions.spec.ts
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent c899f61 commit 23f116b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tests/views/FilesList/FileEntryActions.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 FileEntryActions from '../../../views/FilesList/FileEntry/FileEntryActions.vue'
@@ -64,7 +63,7 @@ vi.mock('vue-router', () => ({
6463
})),
6564
}))
6665

67-
vi.mock('@nextcloud/l10n', () => createL10nMock())
66+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n())
6867

6968
vi.mock('@nextcloud/initial-state', () => ({
7069
loadState: vi.fn((_app: string, _key: string, defaultValue: unknown) => defaultValue),

0 commit comments

Comments
 (0)