Skip to content

Commit 40fc89f

Browse files
authored
fix: assertResponseBody to use JSON.stringify
1 parent a4134ef commit 40fc89f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/parallel/test-inspector-network-http.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,10 @@ async function testHttpPostWithAbsoluteUrlPath() {
311311
await requestWillBeSentFuture;
312312
const responseReceived = await responseReceivedFuture;
313313
await loadingFinishedFuture;
314-
await assertResponseBody(responseReceived, `{"method":"POST","body":"${requestBody}"}`);
314+
await assertResponseBody(responseReceived, JSON.stringify({
315+
method: 'POST',
316+
body: requestBody,
317+
}));
315318
}
316319

317320
async function testHttpsGet() {

0 commit comments

Comments
 (0)