Skip to content

Commit fb087a1

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

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tests/helpers/certification.spec.ts

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

66
import { describe, expect, it, vi, beforeEach } from 'vitest'
7-
import { createL10nMock } from '../testHelpers/l10n.js'
87
import { selectCustonOption, options } from '../../helpers/certification'
98

109
// Mock @nextcloud packages to avoid import-time errors
@@ -27,7 +26,7 @@ vi.mock('@nextcloud/logger', () => ({
2726
})),
2827
}))
2928

30-
vi.mock('@nextcloud/l10n', () => createL10nMock())
29+
vi.mock('@nextcloud/l10n', () => globalThis.mockNextcloudL10n())
3130

3231
const optionFromMock = vi.fn((value) => ({ value }))
3332

0 commit comments

Comments
 (0)