Skip to content

Commit d7dbe05

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

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
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 IdentificationFactors from '../../../views/Settings/IdentificationFactors.vue'
1110

1211
const useConfigureCheckStoreMock = vi.fn()
1312

14-
vi.mock('@nextcloud/l10n', () => createL10nMock())
13+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n())
1514

1615
vi.mock('../../../store/configureCheck.js', () => ({
1716
useConfigureCheckStore: (...args: unknown[]) => useConfigureCheckStoreMock(...args),

0 commit comments

Comments
 (0)