e2e testing

This commit is contained in:
2026-06-15 19:17:13 +05:30
parent 896561245d
commit 01685f14c2
18 changed files with 1102 additions and 198 deletions

14
test.js Normal file
View File

@@ -0,0 +1,14 @@
const https = require('https');
const url = 'https://fiesta.nearle.app/live/api/v1/web/orders/gettimeseries?tenantid=1087&granularity=day&fromdate=2026-05-15&todate=2026-06-15';
https.get(url, (res) => {
let data = '';
res.on('data', (chunk) => { data += chunk; });
res.on('end', () => {
console.log("STATUS:", res.statusCode);
console.log("RESPONSE:", data.substring(0, 500));
});
}).on('error', (err) => {
console.error("ERROR:", err.message);
});