Skip to content

Commit 4378e95

Browse files
test: standardize l10n mock usage in FilesListTableFooter.spec.ts
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 8e18610 commit 4378e95

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tests/views/FilesList/FilesListTableFooter.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
import { beforeEach, describe, expect, it, vi } from 'vitest'
7-
import { createL10nMock, interpolateL10n } from '../../testHelpers/l10n.js'
7+
import { interpolateL10n } from '../../testHelpers/l10n.js'
88
import { mount } from '@vue/test-utils'
99

1010
import FilesListTableFooter from '../../../views/FilesList/FilesListTableFooter.vue'
@@ -18,7 +18,7 @@ const filtersStoreMock = {
1818
activeChips: [] as unknown[],
1919
}
2020

21-
vi.mock('@nextcloud/l10n', () => createL10nMock({
21+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n({
2222
t: (_app: string, text: string, vars?: Record<string, string | number>) => interpolateL10n(text, vars),
2323
n: (_app: string, singular: string, plural: string, count: number, vars?: Record<string, string | number>) => {
2424
const template = count === 1 ? singular : plural

0 commit comments

Comments
 (0)