From 5a27689e80a54c424c3ce260e40d2af2a64e52d9 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Thu, 10 Dec 2020 20:33:36 +0100 Subject: [PATCH] new get test ref #17 --- src/tests/runnerOrgs/org_add.spec.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tests/runnerOrgs/org_add.spec.ts b/src/tests/runnerOrgs/org_add.spec.ts index eaf7b94..fb28b62 100644 --- a/src/tests/runnerOrgs/org_add.spec.ts +++ b/src/tests/runnerOrgs/org_add.spec.ts @@ -2,6 +2,14 @@ import axios from 'axios'; import { config } from '../../config'; const base = "http://localhost:" + config.internal_port +describe('GET /api/organisations', () => { + it('basic get should return 200', async () => { + const res = await axios.get(base + '/api/organisations'); + expect(res.status).toEqual(200); + expect(res.headers['content-type']).toContain("application/json") + }); +}); +// --------------- describe('POST /api/organisations', () => { it('creating a new org with just a name should return 200', async () => { const res = await axios.post(base + '/api/organisations', {