diff options
| author | Tom Harley | 2018-04-23 01:36:52 +0100 |
|---|---|---|
| committer | Tom Harley | 2018-04-23 01:36:52 +0100 |
| commit | 7c25f5ded6429580d7535c114d9a9431b56b319b (patch) | |
| tree | 2228e7a0903ab291ac5100cf00947076cc367c89 /test/integration | |
| parent | Start introduction of preprocessing (diff) | |
| download | medicine-7c25f5ded6429580d7535c114d9a9431b56b319b.tar.gz medicine-7c25f5ded6429580d7535c114d9a9431b56b319b.zip | |
Fix tests and add handy server scripts
Diffstat (limited to 'test/integration')
| -rw-r--r-- | test/integration/protocol.routes.test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/protocol.routes.test.ts b/test/integration/protocol.routes.test.ts index d60f844..77b39f0 100644 --- a/test/integration/protocol.routes.test.ts +++ b/test/integration/protocol.routes.test.ts @@ -232,7 +232,7 @@ describe('routes : protocol', () => { forEach(completeProtocol).it( '%s %s should be json', (method: string, path: string, temp: Template, resCode: number) => { - const request: ChaiHttp.Request = method === 'get' + const request: any = method === 'get' ? chai.request(app).get(base + path) : chai.request(app).post(base + path) .set('content-type', 'application/json').send(temp); @@ -263,7 +263,7 @@ describe('routes : protocol', () => { forEach(completeProtocol).it( '%s %s should conform to the general response template', (method: string, path: string, temp: Template, resCode: number) => { - const request: ChaiHttp.Request = method === 'get' + const request: any = method === 'get' ? chai.request(app).get(base + path) : chai.request(app).post(base + path).send(temp);; request.set('Authorization', `Bearer ${token}`); |
