From 8a1805a4c03d6327a228b4ac56ee62ae53fb009d Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 5 Oct 2026 06:06:59 -0600 Subject: [PATCH] chore: Eliminar script temporal de prueba --- scripts/test_order.js | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 scripts/test_order.js diff --git a/scripts/test_order.js b/scripts/test_order.js deleted file mode 100644 index 8a84fbc..0000000 --- a/scripts/test_order.js +++ /dev/null @@ -1,30 +0,0 @@ -const http = require('http'); - -const data = JSON.stringify({ - estudiante_id: 5, - tipo_orden: 'preorden', - momento_entrega: 'recreo_1', - items: [{ producto_id: 8, cantidad: 1 }] -}); - -const req = http.request({ - hostname: '127.0.0.1', - port: 3030, - path: '/api/ordenes', - method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(data) - } -}, res => { - let body = ''; - res.on('data', chunk => body += chunk); - res.on('end', () => { - console.log('Status:', res.statusCode); - console.log('Response:', body); - }); -}); - -req.on('error', e => console.error(e)); -req.write(data); -req.end();