diff options
| author | Tom Harley | 2020-01-24 06:44:55 +0000 |
|---|---|---|
| committer | Tom Harley | 2020-01-24 06:44:55 +0000 |
| commit | 354e6851e70d7c19106af0d4f14c2b2751e7167d (patch) | |
| tree | 3a00ce281cd6466566708dc1c8234d0b2979945d /test/integration/protocol.routes.test.ts | |
| parent | Simplify Travis CI installing (diff) | |
| download | medicine-trh/travis-setup.tar.gz medicine-trh/travis-setup.zip | |
Changes from ages ago
HEADtrh/travis-setupDiffstat (limited to 'test/integration/protocol.routes.test.ts')
| -rw-r--r-- | test/integration/protocol.routes.test.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/integration/protocol.routes.test.ts b/test/integration/protocol.routes.test.ts index d289de3..6203e4a 100644 --- a/test/integration/protocol.routes.test.ts +++ b/test/integration/protocol.routes.test.ts @@ -7,7 +7,7 @@ import * as chai from 'chai'; const expect: Chai.ExpectStatic = chai.expect; -import { Credentials, Database, addUser, initDB, resetDB, +import { Credentials, Database, addUser, initDB, stopDB, resetDB, Projec, addProjec, Filee, addFilee } from '../test-db'; import { default as User } from '../../src/db/model/User'; import * as fs from 'fs'; @@ -226,6 +226,8 @@ const completeProtocol: MochaForEachInput[] = [ describe('routes : protocol', () => { before(initDatabase); + after(stopDB); + beforeEach(populateDatabase); beforeEach(getToken); @@ -304,6 +306,8 @@ describe('routes : protocol', () => { describe('test edge cases', () => { before(initDatabase); + after(stopDB); + beforeEach(populateDatabase); beforeEach(getToken); |
