diff --git a/src/tests/cards/cards_add.spec.ts b/src/tests/cards/cards_add.spec.ts index 10ee9d4..ef967af 100644 --- a/src/tests/cards/cards_add.spec.ts +++ b/src/tests/cards/cards_add.spec.ts @@ -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"); + }); }); \ No newline at end of file