constrequest=require('supertest');constserver=require('../api/server');describe('cohorts router',function(){it('should run the tests',function(){expect(true).toBe(true);})describe('GET /',function(){it('should return 200 OK',function(){returnrequest(server).get('/api/cohorts').then(res=>{expect(res.status).toBe(200);})})it('should return an array of cohorts as the router value',function(){returnrequest(server).get('/api/cohorts').then(res=>{expect(Array.isArray(res.body)).toBe(true)})})it('should return json',function(){returnrequest(server).get('/api/cohorts').then(res=>{expect(res.type).toMatch(/json/)})})})})