stats/runners/laptime feature/190-runners_laptime #191

Merged
niggl merged 36 commits from feature/190-runners_laptime into dev 2021-04-07 17:16:35 +00:00
Showing only changes of commit d4a02e7db2 - Show all commits

View File

@ -74,3 +74,16 @@ 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");
});
});