<commit_before>'use strict';

var gulp = require('gulp'),
    path = require('path');

gulp.cfg = require('../gulp-config.json');
gulp.plugin = require('gulp-load-plugins')();
gulp.cfg.env = gulp.plugin.util.env.env || gulp.cfg.defaultEnv;
gulp.cfg.envdir = gulp.cfg.envdir.hasOwnProperty(gulp.cfg.env) ? gulp.cfg.envdir[gulp.cfg.env] : gulp.cfg.envdir['development'];

var loadTasks = require('gulp-load')(gulp);
loadTasks(path.resolve(__dirname + '/..'));

describe('Task runner', function() {
  it('should have a babel task ', function() {
    expect(gulp.hasTask('babel')).toBe(true);
  });
  it('should have a bower task ', function() {
    expect(gulp.hasTask('bower')).toBe(true);
  });
  it('should have a build task ', function() {
    expect(gulp.hasTask('build')).toBe(true);
  });
  it('should have a bump task ', function() {
    expect(gulp.hasTask('bump')).toBe(true);
  });
  it('should have a clean task ', function() {
    expect(gulp.hasTask('clean')).toBe(true);
  });
  it('should have a copy task ', function() {
    expect(gulp.hasTask('copy')).toBe(true);
  });
  it('should have a cress task ', function() {
    expect(gulp.hasTask('cress')).toBe(true);
  });
  it('should have a default task ', function() {
    expect(gulp.hasTask('default')).toBe(true);
  });
  it('should have a images task ', function() {
    expect(gulp.hasTask('images')).toBe(true);
  });
  it('should have a jshint task ', function() {
    expect(gulp.hasTask('jshint')).toBe(true);
  });
  it('should have a run task ', function() {
    expect(gulp.hasTask('run')).toBe(true);
  });
  it('should have a scripts task ', function() {
    expect(gulp.hasTask('scripts')).toBe(true);
  });
  it('should have a server task ', function() {
    expect(gulp.hasTask('server')).toBe(true);
  });
  it('should have a styles task ', function() {
    expect(gulp.hasTask('styles')).toBe(true);
  });
  it('should have a templates task ', function() {<commit_msg>Update tasksExist test with new jshint tasks<commit_after>'use strict';

var gulp = require('gulp'),
    path = require('path');

gulp.cfg = require('../gulp-config.json');
gulp.plugin = require('gulp-load-plugins')();
gulp.cfg.env = gulp.plugin.util.env.env || gulp.cfg.defaultEnv;
gulp.cfg.envdir = gulp.cfg.envdir.hasOwnProperty(gulp.cfg.env) ? gulp.cfg.envdir[gulp.cfg.env] : gulp.cfg.envdir['development'];

var loadTasks = require('gulp-load')(gulp);
loadTasks(path.resolve(__dirname + '/..'));

describe('Task runner', function() {
  it('should have a babel task ', function() {
    expect(gulp.hasTask('babel')).toBe(true);
  });
  it('should have a bower task ', function() {
    expect(gulp.hasTask('bower')).toBe(true);
  });
  it('should have a build task ', function() {
    expect(gulp.hasTask('build')).toBe(true);
  });
  it('should have a bump task ', function() {
    expect(gulp.hasTask('bump')).toBe(true);
  });
  it('should have a clean task ', function() {
    expect(gulp.hasTask('clean')).toBe(true);
  });
  it('should have a copy task ', function() {
    expect(gulp.hasTask('copy')).toBe(true);
  });
  it('should have a cress task ', function() {
    expect(gulp.hasTask('cress')).toBe(true);
  });
  it('should have a default task ', function() {
    expect(gulp.hasTask('default')).toBe(true);
  });
  it('should have a images task ', function() {
    expect(gulp.hasTask('images')).toBe(true);
  });
  it('should have a jshint-scripts task ', function() {
    expect(gulp.hasTask('jshint-scripts')).toBe(true);
  });
  it('should have a jshint-babel task ', function() {
    expect(gulp.hasTask('jshint-babel')).toBe(true);
  });
  it('should have a run task ', function() {
    expect(gulp.hasTask('run')).toBe(true);
  });
  it('should have a scripts task ', function() {
    expect(gulp.hasTask('scripts')).toBe(true);
  });
  it('should have a server task ', function() {
    expect(gulp.hasTask('server')).toBe(true);
  });
  it('should have a styles task ', function() {
    expect(gulp.hasTask('styles')).toBe(true);
  });
  it('should have a templates task ', function() {
{'fraction_non_alphanumeric': 0.20644685039370078, 'fraction_numerical': 0.0, 'mean_word_length': 4.272373540856031, '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': '1181630', 'n_tokens_mistral': 1373, 'n_tokens_neox': 1395, 'n_words': 271}