Skip to content

Commit 2dfb6d4

Browse files
committed
refactor: remove duplicate import of http in cross-origin request tests
1 parent 9f1b3e9 commit 2dfb6d4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

test/e2e/cross-origin-request.test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import http from "node:http";
12
import { describe, it } from "node:test";
23
import { expect } from "expect";
34
import webpack from "webpack";
@@ -24,7 +25,6 @@ describe("cross-origin requests", () => {
2425
await server.start();
2526

2627
// Start a separate server for serving the HTML file
27-
import http from "node:http";
2828

2929
const htmlServer = http.createServer((req, res) => {
3030
res.writeHead(200, { "Content-Type": "text/html" });
@@ -78,7 +78,6 @@ describe("cross-origin requests", () => {
7878
await server.start();
7979

8080
// Start a separate server for serving the HTML file
81-
import http from "node:http";
8281

8382
const htmlServer = http.createServer((req, res) => {
8483
res.writeHead(200, { "Content-Type": "text/html" });
@@ -129,7 +128,6 @@ describe("cross-origin requests", () => {
129128
await server.start();
130129

131130
// Start a separate server for serving the HTML file
132-
import http from "node:http";
133131

134132
const htmlServer = http.createServer((req, res) => {
135133
res.writeHead(200, { "Content-Type": "text/html" });
@@ -180,7 +178,6 @@ describe("cross-origin requests", () => {
180178
await server.start();
181179

182180
// Start a separate server for serving the HTML file
183-
import http from "node:http";
184181

185182
const htmlServer = http.createServer((req, res) => {
186183
res.writeHead(200, { "Content-Type": "text/html" });

0 commit comments

Comments
 (0)