{"size": 536, "ext": "js", "max_stars_repo_path": "test/integration/sample.test.js", "max_stars_repo_name": "eugenepolschikov/ml-self-testing-toolkit", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/integration/sample.test.js", "max_issues_repo_name": "eugenepolschikov/ml-self-testing-toolkit", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/integration/sample.test.js", "max_forks_repo_name": "eugenepolschikov/ml-self-testing-toolkit", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.1428571429, "max_line_length": 62, "alphanum_fraction": 0.5615671642}
'use strict'

const request = require('request-promise-native')

const {
  TEST_TOOLKIT_HOST,
  API_PORT
} = require('../util/testConfig')

describe('plugins', () => {
  describe('hapi-swagger', () => {

    it('Checks the health endpoint', async () => {
      // Arrange
      const options = {
        uri: `http://${TEST_TOOLKIT_HOST}:${API_PORT}/health`,
        json: true,
        simple: true
      }

      // Act
      const result = await request(options)

      // Assert
      expect(result.status).toBe('OK')
    })
  })
})