From 0e1dc3e7c69995c691e1dd82e3c2bc68748661ca Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 4 Sep 2017 21:21:47 +0200 Subject: Convert tests to typescript --- server/tests/utils/clients.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 server/tests/utils/clients.ts (limited to 'server/tests/utils/clients.ts') diff --git a/server/tests/utils/clients.ts b/server/tests/utils/clients.ts new file mode 100644 index 000000000..22676bb38 --- /dev/null +++ b/server/tests/utils/clients.ts @@ -0,0 +1,17 @@ +import * as request from 'supertest' + +function getClient (url: string) { + const path = '/api/v1/clients/local' + + return request(url) + .get(path) + .set('Accept', 'application/json') + .expect(200) + .expect('Content-Type', /json/) +} + +// --------------------------------------------------------------------------- + +export { + getClient +} -- cgit v1.2.3