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:
Novice
2026-03-23 09:18:26 +08:00
parent 66e67caa2b
commit cbdcdcc2b9
18 changed files with 44 additions and 45 deletions

View File

@ -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)')
})
})