Compare commits

..

No commits in common. "0b07a53ed209c6193ead3c4d199545e22333ab32" and "b9a7dc84f05441445453193974b2a793b5197fa5" have entirely different histories.

View File

@ -50,11 +50,11 @@ describe('GET /api/stats/runners/* should return 200', () => {
expect(res.status).toEqual(200);
expect(res.headers['content-type']).toContain("application/json");
});
// it('get by donations w/ auth should return 200', async () => {
// const res = await axios.get(base + '/api/stats/runners/donations', axios_config_stats);
// expect(res.status).toEqual(200);
// expect(res.headers['content-type']).toContain("application/json");
// });
it('get by donations w/ auth should return 200', async () => {
const res = await axios.get(base + '/api/stats/runners/donations', axios_config_stats);
expect(res.status).toEqual(200);
expect(res.headers['content-type']).toContain("application/json");
});
it('get by laptime w/ auth should return 200', async () => {
const res = await axios.get(base + '/api/stats/runners/laptime', axios_config_stats);
expect(res.status).toEqual(200);
@ -74,16 +74,3 @@ describe('GET /api/stats/teams/* should return 200', () => {
expect(res.headers['content-type']).toContain("application/json");
});
});
// ---------------
describe('GET /api/stats/organizations/* should return 200', () => {
it('get by distance w/ auth should return 200', async () => {
const res = await axios.get(base + '/api/stats/organizations/distance', axios_config_stats);
expect(res.status).toEqual(200);
expect(res.headers['content-type']).toContain("application/json");
});
it('get by donations w/ auth should return 200', async () => {
const res = await axios.get(base + '/api/stats/organizations/donations', axios_config_stats);
expect(res.status).toEqual(200);
expect(res.headers['content-type']).toContain("application/json");
});
});