Compare commits

..

No commits in common. "dcdbdd15acfe6eef4220b7ed66db60d78107d1f9" and "23bd432c5f33a0863217120d97e2e4ea52a08baf" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View File

@ -51,9 +51,6 @@ export abstract class RunnerGroup {
*/
@IsInt()
public get distance(): number {
if (!this.runners || this.runners.length == 0) {
return 0;
}
return this.runners.reduce((sum, current) => sum + current.distance, 0);
}

View File

@ -72,6 +72,8 @@ describe('GET /api/stats/teams/* should return 200', () => {
});
it('get by donations w/ auth should return 200', async () => {
const res = await axios.get(base + '/api/stats/teams/donations', axios_config_stats);
console.log("################# Teams by donations #################");
console.log(res.data);
expect(res.status).toEqual(200);
expect(res.headers['content-type']).toContain("application/json");
});