Added bulk card creation tests
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
ref #168
This commit is contained in:
parent
c1bbda51f0
commit
438ff0fc3f
|
@ -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");
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue