Return cards generated in bulk feature/180-blank_generation_return #181

Merged
niggl merged 4 commits from feature/180-blank_generation_return into dev 2021-03-29 15:48:07 +00:00
Showing only changes of commit 2f568c9cb8 - Show all commits

View File

@ -168,7 +168,7 @@ describe('POST /api/cards/bulk successfully', () => {
expect(res.headers['content-type']).toContain("application/json"); expect(res.headers['content-type']).toContain("application/json");
}); });
it('creating 50 new bulk cards and letting the system return it should return 200', async () => { it('creating 50 new bulk cards and letting the system return it should return 200', async () => {
const res = await axios.post(base + '/api/cards/bulk?count=1&returnCards=true', {}, axios_config); const res = await axios.post(base + '/api/cards/bulk?count=50&returnCards=true', {}, axios_config);
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");
expect(res.data.length).toEqual(50); expect(res.data.length).toEqual(50);