Merge branch 'dev' into feature/112-selfservice_registration
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/pr Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/pr Build is passing
				
			This commit is contained in:
		@@ -61,9 +61,17 @@ describe('adding + getting scans', () => {
 | 
			
		||||
		expect(res.status).toEqual(200);
 | 
			
		||||
		expect(res.headers['content-type']).toContain("application/json")
 | 
			
		||||
	});
 | 
			
		||||
	it('check if scans was added (no parameter validation)', async () => {
 | 
			
		||||
	it('check if scans was added directly', async () => {
 | 
			
		||||
		const res = await axios.get(base + '/api/scans/' + added_scan.id, axios_config);
 | 
			
		||||
		expect(res.status).toEqual(200);
 | 
			
		||||
		expect(res.headers['content-type']).toContain("application/json");
 | 
			
		||||
		expect(res.data).toEqual(added_scan);
 | 
			
		||||
	});
 | 
			
		||||
	it('check if scans was added via the runner/scans endpoint.', async () => {
 | 
			
		||||
		const res = await axios.get(base + '/api/runners/' + added_runner.id + "/scans", axios_config);
 | 
			
		||||
		expect(res.status).toEqual(200);
 | 
			
		||||
		expect(res.headers['content-type']).toContain("application/json");
 | 
			
		||||
		added_scan.runner.distance = 0;
 | 
			
		||||
		expect(res.data).toContainEqual(added_scan);
 | 
			
		||||
	});
 | 
			
		||||
});
 | 
			
		||||
		Reference in New Issue
	
	Block a user