e2e testing
This commit is contained in:
14
test-api.ts
Normal file
14
test-api.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { getOrderInsight } from './src/services/fiestaApi.ts';
|
||||
import { fiestaGet } from './src/services/fiestaApi.ts';
|
||||
|
||||
async function test() {
|
||||
const res = await fiestaGet('orders/gettimeseries', {
|
||||
tenantid: 1087,
|
||||
granularity: 'day',
|
||||
fromdate: '2026-05-15',
|
||||
todate: '2026-06-15'
|
||||
});
|
||||
console.log(JSON.stringify(res, null, 2));
|
||||
}
|
||||
|
||||
test();
|
||||
Reference in New Issue
Block a user