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.
This commit is contained in:
SnapOtter
2026-06-17 14:39:34 +08:00
parent 620552569e
commit d5c855d844
+3 -1
View File
@@ -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 () => {