diff --git a/src/tests/stats/stats_get.spec.ts b/src/tests/stats/stats_get.spec.ts index 488ad13..dc787a9 100644 --- a/src/tests/stats/stats_get.spec.ts +++ b/src/tests/stats/stats_get.spec.ts @@ -60,4 +60,17 @@ describe('GET /api/stats/runners/* should return 200', () => { expect(res.status).toEqual(200); expect(res.headers['content-type']).toContain("application/json"); }); +}); +// --------------- +describe('GET /api/stats/teams/* should return 200', () => { + it('get by distance w/ auth should return 200', async () => { + const res = await axios.get(base + '/api/stats/teams/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/teams/donations', axios_config_stats); + expect(res.status).toEqual(200); + expect(res.headers['content-type']).toContain("application/json"); + }); }); \ No newline at end of file