<commit_before>var assert = require('chai').assert;
var index = require('../../index');

describe('Entry Point', function () {
  it('Should properly export', function () {
    assert.isObject(index);
  });
});<commit_msg>Add basic test for hook<commit_after>var Sails = require('sails').Sails;

describe('sails-hook-cron', function () {
  var sails;

  before(function (done) {
    this.timeout(10000);

    Sails().lift({
      hooks: {
        "cron": require('../'),
        "grunt": false
      }
    }, function (error, _sails) {
      if (error) return done(error);
      sails = _sails;
      return done();
    });
  });

  after(function (done) {
    return sails ? sails.lower(done) : done();
  });

  it('sails does not crash', function () {
    return true;
  });
});
{'fraction_non_alphanumeric': 0.18870346598202825, 'fraction_numerical': 0.006418485237483954, 'mean_word_length': 2.919597989949749, 'pattern_counts': {'":': 2, '<': 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': '7213798', 'n_tokens_mistral': 262, 'n_tokens_neox': 248, 'n_words': 58}