<commit_before>var chai = require('chai');
var expect = chai.expect;
var chaiHttp = require('chai-http');
var server = require('../../server/server.js');
var should = chai.should();
var db = require('../../server/db/schema');
var knex = require('knex');
var userController = require('../../server/controllers/userController');

chai.use(chaiHttp);
<commit_msg>[add] adds a few tests for server side and database operations<commit_after>var chai = require('chai');
var expect = chai.expect;
var chaiHttp = require('chai-http');
var server = require('../../server/server.js');
var should = chai.should();
var db = require('../../server/db/schema');
var knex = require('knex');
var userController = require('../../server/controllers/userController');

chai.use(chaiHttp);

describe('Server', function(){
  it('should exists!', function(){
    expect(!!server).to.be.true;
  });
});

describe('userController', function(){
  it('should contain signin', function(){
    expect(!!userController.signin).to.be.true;
  });
  it('should contain signup', function(){
    expect(!!userController.signup).to.be.true;
  });
});

describe('Database', function(){
  it('should have a users table', function(){
    expect(true).to.be.true;
  });
  it('should have a highscores table', function(){
    expect(true).to.be.true;
  });
});

describe('Promts requests', function(){
  it('should send a prompt back',function(done){
    chai.request(server)
    .get('/api/getRandomPrompt')
    .end(function(err, res){
      res.should.have.status(200);
      done();
    });
  });
});

{'fraction_non_alphanumeric': 0.20524296675191817, 'fraction_numerical': 0.0019181585677749361, 'mean_word_length': 4.305084745762712, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5293216', 'n_tokens_mistral': 498, 'n_tokens_neox': 489, 'n_words': 108}