File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
packages/testcontainers/src/wait-strategies/utils Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -6,18 +6,14 @@ import { undiciResponseToFetchResponse } from "./undici-response-parser";
66test ( "converts undici response to fetch response" , async ( ) => {
77 const responseData : Partial < Dispatcher . ResponseData > = {
88 statusCode : 200 ,
9- headers : {
10- "content-type" : "application/json" ,
11- "x-custom-header" : [ "value1" , "value2" ] ,
12- } ,
9+ headers : { "content-type" : "application/json" } ,
1310 body : createBody ( '{"key":"value"}' ) ,
1411 } ;
1512
1613 const response = undiciResponseToFetchResponse ( responseData as Dispatcher . ResponseData ) ;
1714
1815 expect ( response . status ) . toBe ( 200 ) ;
1916 expect ( response . headers . get ( "content-type" ) ) . toBe ( "application/json" ) ;
20- expect ( response . headers . get ( "x-custom-header" ) ) . toBe ( "value1, value2" ) ;
2117 await expect ( response . text ( ) ) . resolves . toBe ( '{"key":"value"}' ) ;
2218} ) ;
2319
You can’t perform that action at this time.
0 commit comments