/** Build a single-file multipart/form-data payload for app.inject() tests.
 *  One shared encoding so a fix to quoting/CRLF handling reaches every route
 *  test that exercises @fastify/multipart parsing. */
export function multipartPayload(params) {
    const { boundary, filename, contentType, bytes } = params;
    return Buffer.concat([
        Buffer.from(`--${boundary}\r\n`
            + `Content-Disposition: form-data; name="file"; filename="${filename}"\r\n`
            + `Content-Type: ${contentType}\r\n\r\n`),
        bytes,
        Buffer.from(`\r\n--${boundary}--\r\n`),
    ]);
}
//# sourceMappingURL=multipart.js.map