Added registration invalid company tests

ref #112
This commit is contained in:
Nicolai Ort 2021-01-21 19:48:45 +01:00
parent 3b2ed3f0f2
commit e5b6f650b2
1 changed files with 9 additions and 0 deletions

View File

@ -141,6 +141,15 @@ describe('register invalid company', () => {
expect(res.status).toEqual(400);
expect(res.headers['content-type']).toContain("application/json");
});
it('registering with invalid team should return 404', async () => {
const res = await axios.post(base + '/api/runners/register/' + added_org.registrationKey, {
"firstname": "string",
"lastname": "string",
"team": 9999999999999999999999
}, axios_config);
expect(res.status).toEqual(404);
expect(res.headers['content-type']).toContain("application/json");
});
});
// ---------------
describe('register valid company', () => {