diff --git a/tests/parsers/multipart-form-data.test.ts b/tests/parsers/multipart-form-data.test.ts index 06eeede..a2c6f21 100644 --- a/tests/parsers/multipart-form-data.test.ts +++ b/tests/parsers/multipart-form-data.test.ts @@ -10,7 +10,7 @@ it('should parse valid multipart form data with a single part', () => { 'content-type: application/json', '', '{ "foo": "bar" }', - '--boundary', + '--boundary--', '', 'epilogue', ].join('\r\n') @@ -41,7 +41,7 @@ it('should parse valid multipart form data with multiple parts', () => { '', 'foo bar baz', '', - '--boundary', + '--boundary--', '', 'epilogue', ].join('\r\n') diff --git a/tests/parsers/multipart.test.ts b/tests/parsers/multipart.test.ts index 8f6ff73..fd982b6 100644 --- a/tests/parsers/multipart.test.ts +++ b/tests/parsers/multipart.test.ts @@ -5,11 +5,11 @@ import { parseMultipart } from '@/parsers/multipart' it('should parse valid multipart with a single part', () => { const multipart = [ 'preamble', - '--boundary', + '--boundary ', 'x-content-type: application/json', '', '{ "foo": "bar" }', - '--boundary', + '--boundary--', '', 'epilogue', ].join('\r\n') @@ -31,12 +31,12 @@ it('should parse valid multipart with multiple parts', () => { 'x-content-type: application/json', '', '{ "foo": "bar" }', - '--boundary', + '--boundary\t ', 'content-length: 6', 'x-content-disposition: attachment', '', 'foobar', - '--boundary', + '--boundary--', '', 'epilogue', ].join('\r\n')