diff options
| author | jw255 | 2018-04-23 13:54:17 +0100 |
|---|---|---|
| committer | jw255 | 2018-04-23 13:54:17 +0100 |
| commit | fac0433557ac9556d48a9bb2421ac96ff220786d (patch) | |
| tree | 20ec191c4945f926d0bb21a5f29e792308bf543f /test/integration/auth.routes.test.ts | |
| parent | removed R_eport (diff) | |
| download | medicine-fac0433557ac9556d48a9bb2421ac96ff220786d.tar.gz medicine-fac0433557ac9556d48a9bb2421ac96ff220786d.zip | |
fixed various tests and errors
Diffstat (limited to 'test/integration/auth.routes.test.ts')
| -rw-r--r-- | test/integration/auth.routes.test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/auth.routes.test.ts b/test/integration/auth.routes.test.ts index 29c0cfc..c090984 100644 --- a/test/integration/auth.routes.test.ts +++ b/test/integration/auth.routes.test.ts @@ -80,10 +80,10 @@ describe('authentication', () => { grant_type: 'password' }).then((res) => { // File-not-found is a valid response - expect(res).to.have.status(404); + expect(res).to.have.status(401); }).catch((reason) => { // Unauthorised is a valid response - expect(reason).to.have.status(401); + expect(reason).to.have.status(404); }); }); it('should reject invalid usernames', () => { |
