File tree 2 files changed +6
-2
lines changed
packages/openapi-fetch/test
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -937,7 +937,9 @@ describe("client", () => {
937
937
const req = fetchMocker . mock . calls [ 0 ] [ 0 ] ;
938
938
// note: this is FormData, but Node.js doesn’t handle new Request() properly with formData bodies. So this is only in tests.
939
939
expect ( req . body ) . toBeInstanceOf ( Buffer ) ;
940
- expect ( ( req . headers as Headers ) . get ( "Content-Type" ) ) . toBe ( "text/plain;charset=UTF-8" ) ;
940
+ expect ( ( req . headers as Headers ) . get ( "Content-Type" ) ) . toBe (
941
+ "text/plain;charset=UTF-8" ,
942
+ ) ;
941
943
} ) ;
942
944
943
945
// Node Requests eat credentials (no cookies), but this works in frontend
Original file line number Diff line number Diff line change @@ -946,7 +946,9 @@ describe("client", () => {
946
946
const req = fetchMocker . mock . calls [ 0 ] [ 0 ] ;
947
947
// note: this is FormData, but Node.js doesn’t handle new Request() properly with formData bodies. So this is only in tests.
948
948
expect ( req . body ) . toBeInstanceOf ( Buffer ) ;
949
- expect ( ( req . headers as Headers ) . get ( "Content-Type" ) ) . toBe ( "text/plain;charset=UTF-8" ) ;
949
+ expect ( ( req . headers as Headers ) . get ( "Content-Type" ) ) . toBe (
950
+ "text/plain;charset=UTF-8" ,
951
+ ) ;
950
952
} ) ;
951
953
952
954
// Node Requests eat credentials (no cookies), but this works in frontend
You can’t perform that action at this time.
0 commit comments