Skip to content

Commit

Permalink
remove un-needed todo, users have to provide config to constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
dasfmi committed Nov 16, 2023
1 parent f4fc53e commit 248269c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions e2e/nextjs-app/test/ingest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,4 @@ describe('Ingestion & query on different runtime', () => {
expect(qResp.tables[0].columns[0].data.foo).toEqual('bar');
expect(qResp.tables[0].columns[1].data.bar).toEqual('baz');
});

// TODO: enable this test again when env vars are available on browser runtime
// it('ingest on a browser runtime should succeed', async () => {
// const startTime = new Date(Date.now()).toISOString();
// // call route that ingests logs
// const resp = await fetch(process.env.TESTING_TARGET_URL + '/ingest');
// expect(resp.status).toEqual(200);

// // check dataset for ingested logs
// const qResp = await axiom.query(`['${datasetName}'] | where ['test'] == "ingest_on_browser"`, {
// startTime,
// });
// expect(qResp.matches).toBeDefined();
// expect(qResp.matches).toHaveLength(2);
// expect(qResp.matches![0].data.foo).toEqual('bar');
// expect(qResp.matches![1].data.bar).toEqual('baz');
// });
});

0 comments on commit 248269c

Please sign in to comment.