diff options
| author | jw255 | 2018-03-07 00:47:33 +0000 |
|---|---|---|
| committer | jw255 | 2018-03-07 00:47:33 +0000 |
| commit | 5ff3755aac9555843c32ea3cddab94c95a12e456 (patch) | |
| tree | ca02ba6835d0c59fee864e8f7613a310a6843fe4 /test/integration/index.routes.test.ts | |
| parent | authentication tests (diff) | |
| download | medicine-5ff3755aac9555843c32ea3cddab94c95a12e456.tar.gz medicine-5ff3755aac9555843c32ea3cddab94c95a12e456.zip | |
fixed mocha/chai
Diffstat (limited to 'test/integration/index.routes.test.ts')
| -rw-r--r-- | test/integration/index.routes.test.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/integration/index.routes.test.ts b/test/integration/index.routes.test.ts index 3a5d5ea..70671d8 100644 --- a/test/integration/index.routes.test.ts +++ b/test/integration/index.routes.test.ts @@ -8,7 +8,6 @@ const expect: Chai.ExpectStatic = chai.expect; const should = chai.should(); import * as ex from 'express'; import { default as seq } from '../../src/db/orm'; -import request = require('supertest'); import { default as User } from '../../src/db/model/User'; // Chai-http must be imported this way: @@ -61,7 +60,7 @@ describe('routes : index', () => { context('with authentication', () => { before(function(done) { - request.agent(app) + chai.request(app) .post('/cs3099group-be-4/login') .send(userCredentials) .end(function(err, res) { |
