<commit_before>import models = require('../../src/models/models');
import reqServ = require('../../src/services/request-service');
import errors = require('../../src/errors/errors');
import r = require('rethinkdb');
import query = require('../../src/dbutils/query');
import utils = require('../utils');

class Session {
  [key: string] : any;
}

class Request {
  session: Session;
}

class Response {
  session: Session;
}

class Restify {
  req: Request;
  res: Response;
}

describe('UserAuth', () => {

  var good =  new Restify();
  good.req = new Request();
  good.req = new Response();
  good.req.session = new Session();
  good.req.session["userID"] = "123456789";
  good.req.session["firstName"] = "Peter";
  good.req.session["lastName"] = "Higgs";
  good.req.session["userName"] = "pHiggs";
  good.req.session["email"] = utils.validEmail("pHiggs");


  var bad = new Restify();
  bad.req = new Request();
  bad.req.session = new Session();

  var goodUser: models.User;
  var nonExistantUser: models.User;
  var unactivatedUser: models.User;
  var userData : models.UserData;

  var joinRequest = {
    userID: good.req.session["userID"],
    carpoolID: "someCarpoolID",
  }

  var testFalse = (result) => {expect(result).toBe(false);}
  var testTrue = (result) => {expect(result).toBe(true);}

<commit_msg>Removed some unnessecary code from request-service integration tests<commit_after>import models = require('../../src/models/models');
import reqServ = require('../../src/services/request-service');
import errors = require('../../src/errors/errors');
import r = require('rethinkdb');
import query = require('../../src/dbutils/query');
import utils = require('../utils');

class Session {
  [key: string] : any;
}

class Request {
  session: Session;
}

class Response {
  session: Session;
}

class Restify {
  req: Request;
  res: Response;
}

describe('UserAuth', () => {

  var good =  new Restify();
  good.req = new Request();
  good.req = new Response();
  good.req.session = new Session();
  good.req.session["userID"] = "123456789";

  var joinRequest = {
    userID: good.req.session["userID"],
    carpoolID: "someCarpoolID",
  }

  var testFalse = (result) => {expect(result).toBe(false);}
  var testTrue = (result) => {expect(result).toBe(true);}


{'fraction_non_alphanumeric': 0.18585237258347978, 'fraction_numerical': 0.007908611599297012, 'mean_word_length': 3.8862660944206007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3390668', 'n_tokens_mistral': 763, 'n_tokens_neox': 736, 'n_words': 171}