Added temp console log for ci debugging
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/pr Build is failing
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/pr Build is failing
				
			ref #190
This commit is contained in:
		@@ -47,16 +47,22 @@ describe('GET /api/stats should return 200', () => {
 | 
				
			|||||||
describe('GET /api/stats/runners/* should return 200', () => {
 | 
					describe('GET /api/stats/runners/* should return 200', () => {
 | 
				
			||||||
    it('get by distance w/ auth should return 200', async () => {
 | 
					    it('get by distance w/ auth should return 200', async () => {
 | 
				
			||||||
        const res = await axios.get(base + '/api/stats/runners/distance', axios_config_stats);
 | 
					        const res = await axios.get(base + '/api/stats/runners/distance', axios_config_stats);
 | 
				
			||||||
 | 
					        console.log("################# Runners by distance #################");
 | 
				
			||||||
 | 
					        console.log(res.data);
 | 
				
			||||||
        expect(res.status).toEqual(200);
 | 
					        expect(res.status).toEqual(200);
 | 
				
			||||||
        expect(res.headers['content-type']).toContain("application/json");
 | 
					        expect(res.headers['content-type']).toContain("application/json");
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    it('get by donations w/ auth should return 200', async () => {
 | 
					    it('get by donations w/ auth should return 200', async () => {
 | 
				
			||||||
        const res = await axios.get(base + '/api/stats/runners/donations', axios_config_stats);
 | 
					        const res = await axios.get(base + '/api/stats/runners/donations', axios_config_stats);
 | 
				
			||||||
 | 
					        console.log("################# Runners by donations #################");
 | 
				
			||||||
 | 
					        console.log(res.data);
 | 
				
			||||||
        expect(res.status).toEqual(200);
 | 
					        expect(res.status).toEqual(200);
 | 
				
			||||||
        expect(res.headers['content-type']).toContain("application/json");
 | 
					        expect(res.headers['content-type']).toContain("application/json");
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    it('get by laptime w/ auth should return 200', async () => {
 | 
					    it('get by laptime w/ auth should return 200', async () => {
 | 
				
			||||||
        const res = await axios.get(base + '/api/stats/runners/laptime', axios_config_stats);
 | 
					        const res = await axios.get(base + '/api/stats/runners/laptime', axios_config_stats);
 | 
				
			||||||
 | 
					        console.log("################# Runners by laptime #################");
 | 
				
			||||||
 | 
					        console.log(res.data);
 | 
				
			||||||
        expect(res.status).toEqual(200);
 | 
					        expect(res.status).toEqual(200);
 | 
				
			||||||
        expect(res.headers['content-type']).toContain("application/json");
 | 
					        expect(res.headers['content-type']).toContain("application/json");
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
@@ -65,11 +71,15 @@ describe('GET /api/stats/runners/* should return 200', () => {
 | 
				
			|||||||
describe('GET /api/stats/teams/* should return 200', () => {
 | 
					describe('GET /api/stats/teams/* should return 200', () => {
 | 
				
			||||||
    it('get by distance w/ auth should return 200', async () => {
 | 
					    it('get by distance w/ auth should return 200', async () => {
 | 
				
			||||||
        const res = await axios.get(base + '/api/stats/teams/distance', axios_config_stats);
 | 
					        const res = await axios.get(base + '/api/stats/teams/distance', axios_config_stats);
 | 
				
			||||||
 | 
					        console.log("################# Teams by distance #################");
 | 
				
			||||||
 | 
					        console.log(res.data);
 | 
				
			||||||
        expect(res.status).toEqual(200);
 | 
					        expect(res.status).toEqual(200);
 | 
				
			||||||
        expect(res.headers['content-type']).toContain("application/json");
 | 
					        expect(res.headers['content-type']).toContain("application/json");
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    it('get by donations w/ auth should return 200', async () => {
 | 
					    it('get by donations w/ auth should return 200', async () => {
 | 
				
			||||||
        const res = await axios.get(base + '/api/stats/teams/donations', axios_config_stats);
 | 
					        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.status).toEqual(200);
 | 
				
			||||||
        expect(res.headers['content-type']).toContain("application/json");
 | 
					        expect(res.headers['content-type']).toContain("application/json");
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user