<commit_before>
const request = require('supertest');
const app = require('../../../src/app');

beforeAll(done => {
  app.on('ready', () => {
    done();
  });
});

//------------------------------------------------------------
//                        Launchpads
//------------------------------------------------------------

test('It should return all launchpads', async () => {
  const response = await request(app.callback()).get('/v2/launchpads');
  expect(response.statusCode).toBe(200);
  expect(response.body).toHaveLength(8);
  response.body.forEach(item => {
    expect(item).toHaveProperty('id');
    expect(item).toHaveProperty('full_name');
    expect(item).toHaveProperty('status');
    expect(item).toHaveProperty('vehicles_launched');
    expect(item).toHaveProperty('details');
  });
});

test('It should return LC-39A info', async () => {
  const response = await request(app.callback()).get('/v2/launchpads/ksc_lc_39a');
  expect(response.statusCode).toBe(200);
  expect(response.text).toContain('ksc_lc_39a');
});

test('It should return no launchpad info', async () => {
  const response = await request(app.callback()).get('/v2/launchpads/ksc_lc_40a');
  expect(response.statusCode).toBe(204);
});
<commit_msg>update v2 launchpad test for removed landing pads<commit_after>
const request = require('supertest');
const app = require('../../../src/app');

beforeAll(done => {
  app.on('ready', () => {
    done();
  });
});

//------------------------------------------------------------
//                        Launchpads
//------------------------------------------------------------

test('It should return all launchpads', async () => {
  const response = await request(app.callback()).get('/v2/launchpads');
  expect(response.statusCode).toBe(200);
  expect(response.body).toHaveLength(6);
  response.body.forEach(item => {
    expect(item).toHaveProperty('id');
    expect(item).toHaveProperty('full_name');
    expect(item).toHaveProperty('status');
    expect(item).toHaveProperty('vehicles_launched');
    expect(item).toHaveProperty('details');
  });
});

test('It should return LC-39A info', async () => {
  const response = await request(app.callback()).get('/v2/launchpads/ksc_lc_39a');
  expect(response.statusCode).toBe(200);
  expect(response.text).toContain('ksc_lc_39a');
});

test('It should return no launchpad info', async () => {
  const response = await request(app.callback()).get('/v2/launchpads/ksc_lc_40a');
  expect(response.statusCode).toBe(204);
});

{'fraction_non_alphanumeric': 0.2723642172523962, 'fraction_numerical': 0.017172523961661343, 'mean_word_length': 2.772590361445783, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1343165', 'n_tokens_mistral': 759, 'n_tokens_neox': 725, 'n_words': 113}