(path, method = 'GET', body)
| 16 | const issues = []; |
| 17 | page.on('pageerror', error => issues.push(error.message)); |
| 18 | const api = (path, method = 'GET', body) => page.evaluate(async ({path, method, body}) => { |
| 19 | const response = await fetch(OC.generateUrl('apps/analytics/' + path), { |
| 20 | method, headers: OCA.Analytics.headers(), body: body === undefined ? undefined : JSON.stringify(body), |
| 21 | }); |
| 22 | return {status: response.status, data: await response.json()}; |
| 23 | }, {path, method, body}); |
| 24 | let initial; |
| 25 | const createdObjects = {reports: new Set(), datasets: new Set(), panoramas: new Set()}; |
| 26 | const track = result => { |
no test coverage detected