1+ import http from "node:http" ;
12import { describe , it } from "node:test" ;
23import { expect } from "expect" ;
34import 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