{"size": 427, "ext": "js", "max_stars_repo_path": "api/server.spec.js", "max_stars_repo_name": "Build-Week-web-30-before-30/back-end-eze", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "api/server.spec.js", "max_issues_repo_name": "Build-Week-web-30-before-30/back-end-eze", "max_issues_repo_issues_event_min_datetime": "2019-11-19T08:28:47.000Z", "max_issues_repo_issues_event_max_datetime": "2019-11-19T08:28:47.000Z", "max_forks_repo_path": "api/server.spec.js", "max_forks_repo_name": "Build-Week-web-30-before-30/back-end-eze", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 30.5, "max_line_length": 71, "alphanum_fraction": 0.5011709602}
/* eslint-disable no-undef */
const request = require('supertest')
const server = require('../api/server')

describe('server', () => {
    describe('[GET] / endpoint', () => {
        test('status report', () => {
            return request(server).get('/')
                .expect(200)
                .expect({"message": "Welcome to the 30 before 30 API"})
                .expect('Content-Type', /json/)
        })
    })
})