From 4c1eed009954203125616020d83b517d33eb7815 Mon Sep 17 00:00:00 2001 From: Lordfirespeed <28568841+Lordfirespeed@users.noreply.github.com> Date: Tue, 20 Aug 2024 15:34:06 +0100 Subject: [PATCH] style: `check:fix` --- tests/parsers/multipart-form-data.test.ts | 38 +++++++++++------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/tests/parsers/multipart-form-data.test.ts b/tests/parsers/multipart-form-data.test.ts index 288ab0c..ba80579 100644 --- a/tests/parsers/multipart-form-data.test.ts +++ b/tests/parsers/multipart-form-data.test.ts @@ -1,6 +1,6 @@ import { expect, it } from 'vitest' -import {ParsedFormFieldFileList, parseMultipartFormData} from "@/parsers/multipart-form-data"; +import { parseMultipartFormData } from '@/parsers/multipart-form-data' it('should parse valid multipart form data with a single part', () => { const multipart = [ @@ -17,13 +17,13 @@ it('should parse valid multipart form data with a single part', () => { expect(parseMultipartFormData(Buffer.from(multipart), 'boundary')).toMatchObject({ foo: { - fieldName: "foo", - type: "field-value", + fieldName: 'foo', + type: 'field-value', value: { headers: {}, - content: Buffer.from('{ "foo": "bar" }') - } - } + content: Buffer.from('{ "foo": "bar" }'), + }, + }, }) }) @@ -49,23 +49,23 @@ it('should parse valid multipart form data with multiple parts', () => { const result = parseMultipartFormData(Buffer.from(multipart), 'boundary') expect(result).toMatchObject({ foo: { - fieldName: "foo", - type: "field-value", + fieldName: 'foo', + type: 'field-value', value: { headers: {}, - content: Buffer.from('{ "foo": "bar" }') - } + content: Buffer.from('{ "foo": "bar" }'), + }, }, bar: { - fieldName: "bar", - type: "field-file-list", + fieldName: 'bar', + type: 'field-file-list', files: [ { - filename: "baz", - content: Buffer.from("foo bar baz\r\n"), - headers: {} - } - ] - } + filename: 'baz', + content: Buffer.from('foo bar baz\r\n'), + headers: {}, + }, + ], + }, }) -}) \ No newline at end of file +})