mirror of
https://github.com/langgenius/dify.git
synced 2026-03-26 08:40:14 +08:00
fix: resolve test failures after segment 2 merge
- Backend: fix deduct_llm_quota import path in llm node - Backend: update core.variables → core.workflow.variables imports - Frontend: update UpdateWorkflowNodesMapPayload in tests - Frontend: fix various test expectations to match merged code Made-with: Cursor
This commit is contained in:
@ -167,8 +167,8 @@ describe('formatWorkflowRunIdentifier', () => {
|
||||
expect(formatWorkflowRunIdentifier(0)).toBe(' (Running)')
|
||||
})
|
||||
|
||||
it('should capitalize custom fallback text', () => {
|
||||
expect(formatWorkflowRunIdentifier(undefined, 'pending')).toBe(' (Pending)')
|
||||
it('should use custom fallback text as-is', () => {
|
||||
expect(formatWorkflowRunIdentifier(undefined, 'pending')).toBe(' (pending)')
|
||||
})
|
||||
|
||||
it('should format a valid timestamp', () => {
|
||||
@ -178,6 +178,6 @@ describe('formatWorkflowRunIdentifier', () => {
|
||||
})
|
||||
|
||||
it('should handle single-char fallback text', () => {
|
||||
expect(formatWorkflowRunIdentifier(undefined, 'x')).toBe(' (X)')
|
||||
expect(formatWorkflowRunIdentifier(undefined, 'x')).toBe(' (x)')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user