diff options
Diffstat (limited to 'test/integration/index.routes.test.ts')
| -rw-r--r-- | test/integration/index.routes.test.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/integration/index.routes.test.ts b/test/integration/index.routes.test.ts index 0317d98..acd462a 100644 --- a/test/integration/index.routes.test.ts +++ b/test/integration/index.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: @@ -50,6 +51,8 @@ const getToken = async() => { describe('routes : index', () => { before(initDatabase); + after(stopDB); + describe('GET /', () => { before(populateDatabase); it('should return 401 without authentication', () => { |
