Skip to content

Commit 3c53838

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

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tests/views/FilesList/VirtualList.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
import { markRaw } from '@vue/reactivity'
109

@@ -36,7 +35,7 @@ class IntersectionObserverMock {
3635
constructor(public callback: IntersectionObserverCallback) {}
3736
}
3837

39-
vi.mock('@nextcloud/l10n', () => createL10nMock())
38+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n())
4039

4140
vi.mock('debounce', () => ({
4241
default: vi.fn((fn: (...args: unknown[]) => unknown) => fn),

0 commit comments

Comments
 (0)