e2e testing
This commit is contained in:
14
test.js
Normal file
14
test.js
Normal 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);
|
||||
});
|
||||
Reference in New Issue
Block a user