test: fix test in #30849 (#31350)

This commit is contained in:
Stephen Zhou
2026-01-21 16:46:42 +08:00
committed by GitHub
parent 117b6c65e4
commit aa68966b55
5 changed files with 8 additions and 45 deletions

View File

@ -24,6 +24,7 @@ vi.mock('@/hooks/use-document-title', () => ({
vi.mock('@/context/i18n', () => ({
useLocale: () => 'en-US',
useDocLink: () => (path: string) => `https://docs.example.com${path}`,
}))
vi.mock('@/context/global-public-context', () => ({