diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/integration/auth.routes.test.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/integration/auth.routes.test.ts b/test/integration/auth.routes.test.ts index 888883f..c8a509d 100644 --- a/test/integration/auth.routes.test.ts +++ b/test/integration/auth.routes.test.ts @@ -72,6 +72,14 @@ before((done: any) => { describe('authentication', () => { context('invalid password authentication', () => { + it('should reject login to invalid endpoints', () => { + chai.request(app) + .post('/') + .send({...bobbyCredentials}) + .then((res) => { + expect(res).to.have.status(400); + }); + }); it('should reject invalid usernames', () => { chai.request(app) .post('/cs3099group-be-4/login') |
