<commit_before>describe('In helper', function () {
  const stringHandler = require('../lib/helper/stringHandler');
  const SlackBot = require('../lib/helper/slackBot');
  const { atob } = require('../lib/helper/common');

  it('First letter should be capitalized', () => {
    const first = stringHandler.capitalizeFirstLetter('letter').charCodeAt(0);
    let check = false;

    if(first < 91 && first > 64) {
      check = true;
    }
    
    expect(check).toBe(true);
  });

  it('Any functions should not be `undefined` in slackBot', () => {
    // base64 encoded token
    let token = process.env.BOT_API_KEY;
    if (token.length > 42) token = atob(token);

    const slackBot = new SlackBot({ token, name: process.env.BOT_NAME });

    expect(slackBot.awardPointsCallback).toBeDefined();
    expect(slackBot.deductPointsCallback).toBeDefined();
    expect(slackBot.getAllHousePointsCallback).toBeDefined();
    expect(slackBot.announcePlainString).toBeDefined();
    expect(slackBot.getUserList).toBeDefined();
    expect(slackBot.getName).toBeDefined();
  });
});<commit_msg>edit wrong esLint rule<commit_after>describe('In helper', function () {
  const stringHandler = require('../lib/helper/stringHandler');
  const SlackBot = require('../lib/helper/slackBot');
  const { atob } = require('../lib/helper/common');

  it('First letter should be capitalized', () => {
    const first = stringHandler.capitalizeFirstLetter('letter').charCodeAt(0);
    let check = false;

    if (first < 91 && first > 64) check = true;
    expect(check).toBe(true);
  });

  it('Any functions should not be `undefined` in slackBot', () => {
    // base64 encoded token
    let token = process.env.BOT_API_KEY;
    if (token.length > 42) token = atob(token);

    const slackBot = new SlackBot({ token, name: process.env.BOT_NAME });

    expect(slackBot.awardPointsCallback).toBeDefined();
    expect(slackBot.deductPointsCallback).toBeDefined();
    expect(slackBot.getAllHousePointsCallback).toBeDefined();
    expect(slackBot.announcePlainString).toBeDefined();
    expect(slackBot.getUserList).toBeDefined();
    expect(slackBot.getName).toBeDefined();
  });
  
});
{'fraction_non_alphanumeric': 0.15448658649398705, 'fraction_numerical': 0.008325624421831638, 'mean_word_length': 4.065573770491803, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4289208', 'n_tokens_mistral': 704, 'n_tokens_neox': 667, 'n_words': 128}