Added bulk card creation tests
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/pr Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/pr Build is passing
				
			ref #168
This commit is contained in:
		@@ -148,4 +148,27 @@ describe('POST /api/cards successfully (with runner)', () => {
 | 
			
		||||
			"responseType": "RUNNERCARD"
 | 
			
		||||
		});
 | 
			
		||||
	});
 | 
			
		||||
});
 | 
			
		||||
// ---------------
 | 
			
		||||
describe('POST /api/cards/bulk successfully', () => {
 | 
			
		||||
	it('creating a single new bulk card should return 200', async () => {
 | 
			
		||||
		const res = await axios.post(base + '/api/cards/bulk?count=1', {}, axios_config);
 | 
			
		||||
		expect(res.status).toEqual(200);
 | 
			
		||||
		expect(res.headers['content-type']).toContain("application/json");
 | 
			
		||||
	});
 | 
			
		||||
	it('creating 50 new bulk card should return 200', async () => {
 | 
			
		||||
		const res = await axios.post(base + '/api/cards/bulk?count=50', {}, axios_config);
 | 
			
		||||
		expect(res.status).toEqual(200);
 | 
			
		||||
		expect(res.headers['content-type']).toContain("application/json");
 | 
			
		||||
	});
 | 
			
		||||
	it('creating 250 new bulk card should return 200', async () => {
 | 
			
		||||
		const res = await axios.post(base + '/api/cards/bulk?count=250', {}, axios_config);
 | 
			
		||||
		expect(res.status).toEqual(200);
 | 
			
		||||
		expect(res.headers['content-type']).toContain("application/json");
 | 
			
		||||
	});
 | 
			
		||||
	it('creating 2000 new bulk card should return 200', async () => {
 | 
			
		||||
		const res = await axios.post(base + '/api/cards/bulk?count=2000', {}, axios_config);
 | 
			
		||||
		expect(res.status).toEqual(200);
 | 
			
		||||
		expect(res.headers['content-type']).toContain("application/json");
 | 
			
		||||
	});
 | 
			
		||||
});
 | 
			
		||||
		Reference in New Issue
	
	Block a user