mock-http.js: small cleanup

This commit is contained in:
martin-mfg
2025-10-21 11:24:08 +02:00
parent 013142d777
commit 03e5096e78
-4
View File
@@ -11,9 +11,6 @@ export function createMockReq({
body,
};
}
// searchParams
// req.query = Object.fromEntries(url.searchParams.entries());
// const { code, private_access, user_key } = req.query;
export function createMockRes() {
let statusCode = 200;
@@ -36,7 +33,6 @@ export function createMockRes() {
write(chunk) {
if (typeof chunk !== 'string') {
// Convert to string if it's something else
chunk = String(chunk);
}
chunks.push(chunk);