<commit_before>const server = require('./../src/server');
const test = require('tape');

test('Home Route', (t) => {
  const options = {
    url: '/',
    method: 'GET',
  };
  server.inject(options, (res) => {
    t.equal(res.statusCode, 200, 'statuscode should return 200');
    t.end();
  });
});

test('homeseeker step1 route', (t) => {
  const options = {
    url: '/seeker_step1',
    method: 'GET',
  };
  server.inject(options, (res) => {
    t.equal(res.statusCode, 200, 'statuscode should return 200');
    t.end();
  });
});

test('homeseeker step2 route', (t) => {
  const options = {
    url: '/seeker_step2',
    method: 'GET',
  };
  server.inject(options, (res) => {
    t.equal(res.statusCode, 200, 'statuscode should return 200');
    t.end();
  });
});<commit_msg>Add route tests I've added some tests for the new routes. Relates to issue #19<commit_after>const server = require('./../src/server');
const test = require('tape');

test('Home Route', (t) => {
  const options = {
    url: '/',
    method: 'GET',
  };
  server.inject(options, (res) => {
    t.equal(res.statusCode, 200, 'statuscode should return 200');
    t.end();
  });
});

test('homeseeker step1 route', (t) => {
  const options = {
    url: '/seeker_step1',
    method: 'GET',
  };
  server.inject(options, (res) => {
    t.equal(res.statusCode, 200, 'statuscode should return 200');
    t.end();
  });
});

test('homeseeker step2 route', (t) => {
  const options = {
    url: '/seeker_step2',
    method: 'GET',
  };
  server.inject(options, (res) => {
    t.equal(res.statusCode, 200, 'statuscode should return 200');
    t.end();
  });
});

test('results route', (t) => {
  const options = {
    url: '/results',
    method: 'GET',
  };
  server.inject(options, (res) => {
    t.equal(res.statusCode, 200, 'statuscode should return 200');
    t.end();
  });
});

test('getUsers route', (t) => {
  const options = {
    url: '/getUsers',
    method: 'GET',
  };
  server.inject(options, (res) => {
    t.equal(res.statusCode, 200, 'statuscode should return 200');
    t.end();
  });
});
{'fraction_non_alphanumeric': 0.2103996148290804, 'fraction_numerical': 0.027924891670678863, 'mean_word_length': 3.139442231075697, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '457377', 'n_tokens_mistral': 791, 'n_tokens_neox': 736, 'n_words': 172}