From 6d4587d27f6f47329b0372a261784b76a7f0aced Mon Sep 17 00:00:00 2001 From: jw255 Date: Wed, 7 Mar 2018 15:17:56 +0000 Subject: small fix --- test/integration/auth.routes.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') 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') -- cgit v1.2.1