Skip to content

Commit ec1246f

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

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tests/views/Settings/Envelope.spec.ts

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

66
import { beforeAll, beforeEach, describe, expect, it, vi } from 'vitest'
7-
import { createL10nMock } from '../../testHelpers/l10n.js'
87
import { mount } from '@vue/test-utils'
98

109
type EnvelopeVm = {
@@ -17,7 +16,7 @@ vi.mock('@nextcloud/initial-state', () => ({
1716
loadState: (...args: unknown[]) => loadStateMock(...args),
1817
}))
1918

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

2221
let Envelope: unknown
2322

0 commit comments

Comments
 (0)