parent
3b2ed3f0f2
commit
e5b6f650b2
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in New Issue