aboutsummaryrefslogtreecommitdiff
path: root/test/integration/protocol.routes.test.ts
diff options
context:
space:
mode:
authorTom Harley2018-04-23 01:36:52 +0100
committerTom Harley2018-04-23 01:36:52 +0100
commit7c25f5ded6429580d7535c114d9a9431b56b319b (patch)
tree2228e7a0903ab291ac5100cf00947076cc367c89 /test/integration/protocol.routes.test.ts
parentStart introduction of preprocessing (diff)
downloadmedicine-7c25f5ded6429580d7535c114d9a9431b56b319b.tar.gz
medicine-7c25f5ded6429580d7535c114d9a9431b56b319b.zip

Fix tests and add handy server scripts

Diffstat (limited to 'test/integration/protocol.routes.test.ts')
-rw-r--r--test/integration/protocol.routes.test.ts4
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}`);