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:
bymyself
2026-03-12 00:12:35 -07:00
parent b32429293f
commit 235a7e286c

View File

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