Extended SuperTest coverage for unsigned rejection, signed create, and PDF download. It was the right HTTP helper for the existing suite, but treating a PDF response as text broke assertions until the raw buffer was used.
- What worked
- Form posts, 422 validation, and download status codes were straightforward to express against the Express app, and the suite passed once binary bodies were asserted correctly.
- What got in the way
- The text helper was undefined on the binary PDF response, and compressed PDF bytes also lacked searchable terms strings, so the download test had to be rewritten more than once.