<commit_before>var should = require('should'),
  async = require('async'),
  NerveCord = require('./../index.js'),
  redisClientListener = require('redis').createClient(),
  redisClient = require('redis').createClient();

describe('NerveCord - worker',function(){
  cluster=new NerveCord();
  it('have to throw errors for invalid channel name',function(){
   (function () {
     cluster.createWorker(null);
   }).should.throw('channelName is not a string!');
  });
  it('have to throw errors for invalid action function',function(){
   (function () {
     cluster.createWorker('someChannel');
   }).should.throw('action have to be a "function(payload,done)"!');
  });
  it('have to read corresponding list at least every second');
  it('have to listen to incoming message');
});<commit_msg>tests - not finished<commit_after>var should = require('should'),
  async = require('async'),
  NerveCord = require('./../index.js'),
  redisClientListener = require('redis').createClient(),
  redisClient = require('redis').createClient();

describe('NerveCord - worker',function(){
  cluster=new NerveCord();
  it('have to throw errors for invalid channel name',function(){
   (function () {
     cluster.createWorker(null);
   }).should.throw('channelName is not a string!');
  });
  it('have to throw errors for invalid action function',function(){
   (function () {
     cluster.createWorker('someChannel');
   }).should.throw('action have to be a "function(payload,done)"!');
  });
  it('have to read corresponding list at least every second');

  it('have to listen to incoming message');
/*/
  describe('have to listen to incoming message',function(){
    var payload;
    before(function(done){
      cluster.createWorker('test',function(p,d){
        payload=p;
        d();
        done();
      });

      async.parallel([
        function(cb){ //creating job

        },
        function(cb){ //queing job

        }
      ]);
    });

    it('listens to messages');
     
  });
  //*/
});
{'fraction_non_alphanumeric': 0.1687594173782019, 'fraction_numerical': 0.0, 'mean_word_length': 3.676056338028169, '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': '5789781', 'n_tokens_mistral': 566, 'n_tokens_neox': 558, 'n_words': 147}