<commit_before>import chai from 'chai';
import customMemes from '../lib/custom_memes';

chai.should();

describe('custom_memes', () => {
  describe('ayylmao', () => {
    it('should return the correct imgur url and local file', done => {
      let completed = 0;

      function sendMessage(channel, res) {
        channel.should.equal('test');
        res.should.equal('http://i.imgur.com/m7NaGVx.png');

        completed++;
        if (completed === 2) return done();
      }

      function sendFile(channel, res) {
        channel.should.equal('test');
        res.should.equal('./images/Ayylmao.png');

        completed++;
        if (completed === 2) return done();
      }
      customMemes.ayylmao({
        sendMessage,
        sendFile
      }, {channel: 'test'});
    });
  });

  describe('chillenmyb', () => {
    it('should return the correct local file', done => {
      function sendFile(channel, res) {
        channel.should.equal('test');
        res.should.equal('./images/Chillenmyb.jpg');
        done();
      }
      customMemes.chillenmyb({sendFile}, {channel: 'test'});
    });
  });

  describe('feelsgoodman', () => {
    it('should return the correct local file', done => {
      function sendFile(channel, res) {
        channel.should.equal('test');
        res.should.equal('./images/Feelsgoodman.png');
        done();
      }
      customMemes.feelsgoodman({sendFile}, {channel: 'test'});
    });
  });

  describe('kappa', () => {
    it('should return the correct local file', done => {
      function sendFile(channel, res) {
        channel.should.equal('test');
        res.should.equal('./images/Kappa.png');
        done();
      }
      customMemes.kappa({sendFile}, {channel: 'test'});
    });
  });

  describe('kappahd', () => {
    it('should return the correct local file', done => {
      function sendFile(channel, res) {
        channel.should.equal('test');
        res.should.equal('./images/Kappahd.png');
        done();
      }
      customMemes.kappahd({sendFile}, {channel: 'test'});
    });
  });

  describe('skeltal', () => {
    it('should return the correct imgur url', done => {
      function sendMessage(channel, res) {
        channel.should.equal('test');
        res.should.equal('http://i.imgur.com/ZX79Q4S.png');
        done();<commit_msg>update tests<commit_after>import chai from 'chai';
import path from 'path';

import customMemes from '../lib/custom_memes';

chai.should();

describe('custom_memes', () => {
  describe('ayylmao', () => {
    it('should return the correct imgur url and local file', done => {
      let completed = 0;

      function sendMessage(channel, res) {
        channel.should.equal('test');
        res.should.equal('http://i.imgur.com/m7NaGVx.png');

        completed++;
        if (completed === 2) return done();
      }

      function sendFile(channel, res) {
        channel.should.equal('test');
        res.should.equal(path.join(__dirname, '../images/Ayylmao.png'));

        completed++;
        if (completed === 2) return done();
      }
      customMemes.ayylmao({
        sendMessage,
        sendFile
      }, {channel: 'test'});
    });
  });

  describe('chillenmyb', () => {
    it('should return the correct local file', done => {
      function sendFile(channel, res) {
        channel.should.equal('test');
        res.should.equal(path.join(__dirname, '../images/Chillenmyb.jpg'));
        done();
      }
      customMemes.chillenmyb({sendFile}, {channel: 'test'});
    });
  });

  describe('feelsgoodman', () => {
    it('should return the correct local file', done => {
      function sendFile(channel, res) {
        channel.should.equal('test');
        res.should.equal(path.join(__dirname, '../images/Feelsgoodman.png'));
        done();
      }
      customMemes.feelsgoodman({sendFile}, {channel: 'test'});
    });
  });

  describe('kappa', () => {
    it('should return the correct local file', done => {
      function sendFile(channel, res) {
        channel.should.equal('test');
        res.should.equal(path.join(__dirname, '../images/Kappa.png'));
        done();
      }
      customMemes.kappa({sendFile}, {channel: 'test'});
    });
  });

  describe('kappahd', () => {
    it('should return the correct local file', done => {
      function sendFile(channel, res) {
        channel.should.equal('test');
        res.should.equal(path.join(__dirname, '../images/Kappahd.png'));
        done();
      }
      customMemes.kappahd({sendFile}, {channel: 'test'});
    });
  });

  describe('skeltal', () => {
    it('should return the correct imgur url', done => {
      function sendMessage(channel, res) {
        channel.should.equal('test');
        res.should.equal('http://i.imgur.com/ZX79Q4S.png');
        done();
{'fraction_non_alphanumeric': 0.181360201511335, 'fraction_numerical': 0.002938706968933669, 'mean_word_length': 2.5559701492537314, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '2604173', 'n_tokens_mistral': 1483, 'n_tokens_neox': 1450, 'n_words': 275}