From d5c855d844a9e2397417418fdae070ff03a185d5 Mon Sep 17 00:00:00 2001 From: SnapOtter Date: Wed, 17 Jun 2026 14:39:34 +0800 Subject: [PATCH] test: align batch empty-input assertion with modality-aware error The batch endpoint became modality-aware, so an empty request returns the generic "No files provided" rather than the legacy image-specific message. The assertion still matched /no image/i (a pre-existing stale spec on main), so it failed against the correct behavior. Match /no files/i instead. --- tests/integration/batch.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration/batch.test.ts b/tests/integration/batch.test.ts index 09662697..d40517f7 100644 --- a/tests/integration/batch.test.ts +++ b/tests/integration/batch.test.ts @@ -309,7 +309,9 @@ describe("Batch error handling", () => { expect(res.statusCode).toBe(400); const result = JSON.parse(res.body); - expect(result.error).toMatch(/no image/i); + // Batch is modality-aware now, so the empty-input error is generic + // ("No files provided") rather than the legacy image-specific message. + expect(result.error).toMatch(/no files/i); }); it("returns 400 for invalid settings JSON", async () => {