Self service registration feature/112-selfservice_registration #120

Merged
niggl merged 31 commits from feature/112-selfservice_registration into dev 2021-01-22 14:13:29 +00:00
Showing only changes of commit e5b6f650b2 - Show all commits

View File

@ -141,6 +141,15 @@ describe('register invalid company', () => {
expect(res.status).toEqual(400); expect(res.status).toEqual(400);
expect(res.headers['content-type']).toContain("application/json"); 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', () => { describe('register valid company', () => {