Skip to content

Commit f00d15a

Browse files
Simplify tests
1 parent e780543 commit f00d15a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/testcontainers/src/wait-strategies/utils/undici-response-parser.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,14 @@ import { undiciResponseToFetchResponse } from "./undici-response-parser";
66
test("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

0 commit comments

Comments
 (0)