diff options
| author | jw255 | 2018-03-07 15:17:56 +0000 |
|---|---|---|
| committer | jw255 | 2018-03-07 15:17:56 +0000 |
| commit | 6d4587d27f6f47329b0372a261784b76a7f0aced (patch) | |
| tree | f7a72001282b18a01623e8b1936237dafd0497d7 /test/integration | |
| parent | ... (diff) | |
| download | medicine-6d4587d27f6f47329b0372a261784b76a7f0aced.tar.gz medicine-6d4587d27f6f47329b0372a261784b76a7f0aced.zip | |
small fix
Diffstat (limited to 'test/integration')
| -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') |
