<commit_before>var Email = require('../../lib/email');

var text_params = {
  to: '<EMAIL>',
  from: '<EMAIL>',
  subject: 'Subject',
  text: 'This is an email.'
};

describe('Email', function () {
  it('should allow attributes to be set in the constuctor', function() {
    var mail = new Email(text_params);

    for (var key in text_params) {
      text_params[key].should.eql(mail.params[key]);
    }
  });

  it('should allow to field to be set via addTo', function() {
    var mail = new Email(text_params);
    mail.addTo('<EMAIL>');
    mail.
  });

  describe('validation', function() {
    it('should invalidate when there are no parameters', function() {
      var mail = new Email();

      mail.validate().should.be.false;
    });

    it('should return true when the mail is valid', function() {
      var mail = new Email(text_params);

      mail.validate().should.be.true;
    });
  });
});<commit_msg>removed broken test<commit_after>var Email = require('../../lib/email');

var text_params = {
  to: '<EMAIL>',
  from: '<EMAIL>',
  subject: 'Subject',
  text: 'This is an email.'
};

describe('Email', function () {
  it('should allow attributes to be set in the constuctor', function() {
    var mail = new Email(text_params);

    for (var key in text_params) {
      text_params[key].should.eql(mail.params[key]);
    }
  });

  describe('validation', function() {
    it('should invalidate when there are no parameters', function() {
      var mail = new Email();

      mail.validate().should.be.false;
    });

    it('should return true when the mail is valid', function() {
      var mail = new Email(text_params);

      mail.validate().should.be.true;
    });
  });
});
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.0, 'mean_word_length': 3.1138014527845037, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '6850711', 'n_tokens_mistral': 532, 'n_tokens_neox': 523, 'n_words': 152}