Skip to content

Commit 3da63fe

Browse files
committed
fix: api.test.js test work duplicate in inner scope
1 parent b184afe commit 3da63fe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/e2e/api.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,8 @@ describe(
680680
const compiler = webpack(config);
681681
const server = new Server(options, compiler);
682682

683-
tests.forEach((test) => {
684-
const headers = { host: test };
683+
tests.forEach((host) => {
684+
const headers = { host };
685685

686686
if (!server.checkHeader(headers, "host")) {
687687
throw new Error("Validation didn't pass");
@@ -726,8 +726,8 @@ describe(
726726
const webSocketRequests = [];
727727
const session = await page.context().newCDPSession(page);
728728

729-
session.on("Network.webSocketCreated", (test) => {
730-
webSocketRequests.push(test);
729+
session.on("Network.webSocketCreated", (payload) => {
730+
webSocketRequests.push(payload);
731731
});
732732

733733
await session.send("Target.setAutoAttach", {

0 commit comments

Comments
 (0)