Files
dify/web/app/components/workflow/__tests__/i18n.ts
Coding On Star 4df602684b test(workflow): add unit tests for workflow components (#33741)
Co-authored-by: CodingOnStar <hanxujiang@dify.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-19 18:35:16 +08:00

10 lines
286 B
TypeScript

import { vi } from 'vitest'
export function resolveDocLink(path: string, baseUrl = 'https://docs.example.com') {
return `${baseUrl}${path}`
}
export function createDocLinkMock(baseUrl = 'https://docs.example.com') {
return vi.fn((path: string) => resolveDocLink(path, baseUrl))
}