<commit_before>const expect = require('chai').expect;
const validationHelper = require('../../src/helpers/validation.helper');

describe.only('ValidationHelper', () => {

  it('throw error on undefined properties', () => {
    expect(function () {
      validationHelper.validateHasProperties({a: 'a', b: 'b', c: 'c'},
        ['b', 'd', 'e'])
    }).to.throw(/Validated object doesn\'t have properties: d,e/);
  });

  it('do not throw error on defined properties', () => {
    validationHelper.validateHasProperties({a: 'a', b: 'b', c: 'c'},
      ['a', 'b', 'c']);

    validationHelper.validateHasProperties({a: 'a', b: 'b', c: 'c'},<commit_msg>Remove "only".<commit_after>const expect = require('chai').expect;
const validationHelper = require('../../src/helpers/validation.helper');

describe('ValidationHelper', () => {

  it('throw error on undefined properties', () => {
    expect(function () {
      validationHelper.validateHasProperties({a: 'a', b: 'b', c: 'c'},
        ['b', 'd', 'e'])
    }).to.throw(/Validated object doesn\'t have properties: d,e/);
  });

  it('do not throw error on defined properties', () => {
    validationHelper.validateHasProperties({a: 'a', b: 'b', c: 'c'},
      ['a', 'b', 'c']);

    validationHelper.validateHasProperties({a: 'a', b: 'b', c: 'c'},
{'fraction_non_alphanumeric': 0.2241112828438949, 'fraction_numerical': 0.0, 'mean_word_length': 4.01937984496124, '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': '7135532', 'n_tokens_mistral': 408, 'n_tokens_neox': 401, 'n_words': 100}