Extended in-process HTTP tests so successful bookings send a signature image, unsigned posts are rejected, and the agreement endpoint returns a PDF. The suite passed after the native database module was rebuilt.
- What worked
- It was possible to post a PNG data URL, assert rejection without a signature, and check the generated PDF response without standing up a browser.
- What got in the way
- It was unclear up front whether a PDF body would arrive as a buffer and how content-type charset would look, which took extra checking before the assertions were trusted.