Compare commits
No commits in common. "dcdbdd15acfe6eef4220b7ed66db60d78107d1f9" and "23bd432c5f33a0863217120d97e2e4ea52a08baf" have entirely different histories.
dcdbdd15ac
...
23bd432c5f
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user