<commit_before>var NOOT = nootrequire('errors');

describe('NOOT.Errors', function() {
  describe('NOOT.Errors.InternalServerError', function() {
    it('should have right properties', function() {
      var err = new NOOT.Errors.InternalServerError('Bad things happened');
      err.statusCode.should.equal(500);
      err.name.should.equal('InternalServerError');
      err.code.should.equal('InternalServerError');
    });
  });
  describe('NOOT.Errors.NotImplemented', function() {
    it('should have right properties', function() {
      var err = new NOOT.Errors.NotImplemented('Bad things happened');
      err.statusCode.should.equal(501);
      err.name.should.equal('NotImplementedError');
      err.code.should.equal('NotImplementedError');
    });
  });
  describe('NOOT.Errors.BadRequest', function() {
    it('should have right properties', function() {
      var err = new NOOT.Errors.BadRequest('Bad things happened');
      err.statusCode.should.equal(400);
      err.name.should.equal('BadRequestError');
      err.code.should.equal('BadRequestError');
    });
  });
  describe('NOOT.Errors.Unauthorized', function() {
    it('should have right properties', function() {
      var err = new NOOT.Errors.Unauthorized('Bad things happened');
      err.statusCode.should.equal(401);
      err.name.should.equal('UnauthorizedError');
      err.code.should.equal('UnauthorizedError');
    });
  });
  describe('NOOT.Errors.Forbidden', function() {
    it('should have right properties', function() {
      var err = new NOOT.Errors.Forbidden('Bad things happened');
      err.statusCode.should.equal(403);
      err.name.should.equal('ForbiddenError');
      err.code.should.equal('ForbiddenError');
    });
  });
  describe('NOOT.Errors.NotFound', function() {
    it('should have right properties', function() {
      var err = new NOOT.Errors.NotFound('Bad things happened');
      err.statusCode.should.equal(404);
      err.name.should.equal('NotFoundError');
      err.code.should.equal('NotFoundError');
    });
  });
  describe('NOOT.Errors.Conflict', function() {
    it('should have right properties', function() {
      var err = new NOOT.Errors.Conflict('Bad things happened');
      err.statusCode.should.equal(409);
      err.name.should.equal('ConflictError');
      err.code.should.equal('ConflictError');
    });
  });
});<commit_msg>Style changes in NOOT.Errors tests<commit_after>var NOOT = nootrequire('errors');

describe('NOOT.Errors', function() {
  it('InternalServerError should have right properties', function() {
    var err = new NOOT.Errors.InternalServerError('Bad things happened');
    err.statusCode.should.equal(500);
    err.name.should.equal('InternalServerError');
    err.code.should.equal('InternalServerError');
  });
  it('NotImplemented should have right properties', function() {
    var err = new NOOT.Errors.NotImplemented('Bad things happened');
    err.statusCode.should.equal(501);
    err.name.should.equal('NotImplementedError');
    err.code.should.equal('NotImplementedError');
  });
  it('BadRequest should have right properties', function() {
    var err = new NOOT.Errors.BadRequest('Bad things happened');
    err.statusCode.should.equal(400);
    err.name.should.equal('BadRequestError');
    err.code.should.equal('BadRequestError');
  });
  it('Unauthorized should have right properties', function() {
    var err = new NOOT.Errors.Unauthorized('Bad things happened');
    err.statusCode.should.equal(401);
    err.name.should.equal('UnauthorizedError');
    err.code.should.equal('UnauthorizedError');
  });
  it('Forbidden should have right properties', function() {
    var err = new NOOT.Errors.Forbidden('Bad things happened');
    err.statusCode.should.equal(403);
    err.name.should.equal('ForbiddenError');
    err.code.should.equal('ForbiddenError');
  });
  it('NotFound should have right properties', function() {
    var err = new NOOT.Errors.NotFound('Bad things happened');
    err.statusCode.should.equal(404);
    err.name.should.equal('NotFoundError');
    err.code.should.equal('NotFoundError');
  });
  it('Conflict should have right properties', function() {
    var err = new NOOT.Errors.Conflict('Bad things happened');
    err.statusCode.should.equal(409);
    err.name.should.equal('ConflictError');
    err.code.should.equal('ConflictError');
  });
});
{'fraction_non_alphanumeric': 0.15739889705882354, 'fraction_numerical': 0.009650735294117647, 'mean_word_length': 4.079346557759626, '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': '1972808', 'n_tokens_mistral': 1282, 'n_tokens_neox': 1251, 'n_words': 231}