<commit_before>var mocha = require('mocha');
var should = require('chai').should();
var expect = require('chai').expect;
var compare = require('./../imgCompare.js').compare;


describe('Image comparison', function() {
  var i = 'a';
   it('should return true', function(done) {
    expect(i).to.equal('a');
    done();
   });


  it('compare should be a function', function (done) {

   compare.should.be.a.Function
    done();
   })

   it('should return undefined when no images are passes', function (done) {
    var i = '';
   var result = compare(i,i,i);
   expect(result).to.equal(undefined);
    done();
   })

});<commit_msg>[Test] imgDiff spec<commit_after>var mocha = require('mocha');
var expect = require('expect.js');
var compare = require('./../imgCompare.js').compare;


describe('Image comparison', function() {
  var i = 'a';
   it('should return true', function(done) {
    expect(i).to.equal('a');
    done();
   });


  it('compare should be a function', function (done) {

    expect(compare).to.be.an('function');
    done();
  })

  it('should return undefined when no images are passes', function (done) {
    var i = '';
    var result = compare(i,i,i);
    expect(result).to.equal(undefined);
    done();
  })

});
{'fraction_non_alphanumeric': 0.19112903225806452, 'fraction_numerical': 0.0, 'mean_word_length': 3.5793357933579335, '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': '5187991', 'n_tokens_mistral': 401, 'n_tokens_neox': 385, 'n_words': 99}