mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
fix: update text-only preview_output test for stricter validation
The centralized parseTaskOutput correctly rejects preview_output items that lack required filename/subfolder fields. A text-only preview_output with no filename should produce zero flatOutputs, not one with empty filename.
This commit is contained in:
@@ -202,8 +202,7 @@ describe('TaskItemImpl', () => {
|
||||
|
||||
const task = new TaskItemImpl(job)
|
||||
|
||||
expect(task.flatOutputs).toHaveLength(1)
|
||||
expect(task.flatOutputs[0].filename).toBe('')
|
||||
expect(task.flatOutputs).toHaveLength(0)
|
||||
expect(task.previewableOutputs).toHaveLength(0)
|
||||
expect(task.previewOutput).toBeUndefined()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user