Skip to content

Commit df42a92

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tests/store/files.spec.ts

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

66
import { beforeAll, beforeEach, describe, expect, it, vi } from 'vitest'
7-
import { createL10nMock, interpolateL10n } from '../testHelpers/l10n.js'
7+
import { interpolateL10n } from '../testHelpers/l10n.js'
88
import type { Mock } from 'vitest'
99
import { createPinia, setActivePinia } from 'pinia'
1010
import axios from '@nextcloud/axios'
@@ -30,7 +30,7 @@ type Signer = {
3030
signRequestId?: number
3131
}
3232

33-
vi.mock('@nextcloud/l10n', () => createL10nMock({
33+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n({
3434
t: (_app: string, msg: string, params?: TranslationParams) => interpolateL10n(msg, params),
3535
}))
3636

0 commit comments

Comments
 (0)