@@ -5,12 +5,12 @@ import type { RequestBodyObject } from "@omer-x/openapi-types/request-body";
55
66describe ( "resolveContent" , ( ) => {
77 it ( "should return undefined if source is not provided" , ( ) => {
8- const result = resolveContent ( "none" , undefined ) ;
8+ const result = resolveContent ( undefined ) ;
99 expect ( result ) . toBeUndefined ( ) ;
1010 } ) ;
1111
1212 it ( "should create content for a string schema reference" , ( ) => {
13- const result = resolveContent ( "none" , " User", false ) ;
13+ const result = resolveContent ( "User" , false ) ;
1414
1515 const expectedContent = {
1616 "application/json" : {
@@ -29,7 +29,7 @@ describe("resolveContent", () => {
2929 age : z . number ( ) ,
3030 } ) ;
3131
32- const result = resolveContent ( "none" , zodSchema , false ) ;
32+ const result = resolveContent ( zodSchema , false ) ;
3333
3434 const expectedContent = {
3535 "application/json" : {
@@ -53,7 +53,7 @@ describe("resolveContent", () => {
5353 } ) ;
5454
5555 it ( "should create multipart/form-data content when isFormData is true" , ( ) => {
56- const result = resolveContent ( "none" , " User", false , true ) ;
56+ const result = resolveContent ( "User" , false , true ) ;
5757
5858 const expectedContent = {
5959 "multipart/form-data" : {
0 commit comments