From 354e6851e70d7c19106af0d4f14c2b2751e7167d Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Fri, 24 Jan 2020 06:44:55 +0000 Subject: Changes from ages ago --- test/integration/auth.routes.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/integration/auth.routes.test.ts') diff --git a/test/integration/auth.routes.test.ts b/test/integration/auth.routes.test.ts index c090984..362a262 100644 --- a/test/integration/auth.routes.test.ts +++ b/test/integration/auth.routes.test.ts @@ -7,7 +7,8 @@ import * as chai from 'chai'; const expect: Chai.ExpectStatic = chai.expect; -import { Credentials, Database, addUser, initDB, resetDB } from '../test-db'; +import { Credentials, Database, addUser, initDB, stopDB, resetDB +} from '../test-db'; import { default as User } from '../../src/db/model/User'; // Chai-http must be imported this way: @@ -69,6 +70,8 @@ const base: string = '/cs3099group-be-4'; describe('authentication', () => { before(initDatabase); + after(stopDB); + context('invalid password authentication', () => { before(populateDatabase); it('should reject login to invalid endpoints', () => { -- cgit v1.2.1