From 22cae39bd351ca285880e50187ea0d46a7a26437 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Tue, 6 Apr 2021 09:29:23 +0200 Subject: [PATCH] Added temp console log for test ref #190 --- src/tests/stats/stats_get.spec.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/tests/stats/stats_get.spec.ts b/src/tests/stats/stats_get.spec.ts index 460f79d..8dbe095 100644 --- a/src/tests/stats/stats_get.spec.ts +++ b/src/tests/stats/stats_get.spec.ts @@ -50,11 +50,12 @@ 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); + console.log(res.data) + 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);