<commit_before>'use strict';
var path = require('path');
var assert = require('yeoman-assert');
var helpers = require('yeoman-test');

describe('generator-angular-modsmith:directive', function () {
  before(function () {
    return helpers.run(path.join(__dirname, '../generators/directive'))
      .withPrompts({someAnswer: true})
      .toPromise();
  });

  it('creates files', function () {
    assert.file([
      'dummyfile.txt'
    ]);
  });
});<commit_msg>subgen: directive: Add unit test cases<commit_after>'use strict';
var path = require('path');
var assert = require('yeoman-assert');
var helpers = require('yeoman-test');

describe('generator-angular-modsmith:directive', function () {
  before(function () {
    return helpers.run(path.join(__dirname, '../generators/directive'))
      .withLocalConfig({
        pkg: {
          name: {
            orig: 'test-mod',
            slug: 'test-mod',
            camel: 'testMod'
          },
          desc: 'Test Module',
          version: '0.0.1',
          repo: '',
          license: 'Apache-2.0',
          keywords: [
            'key', 'word'
          ]
        },
        author: {
          name: '<NAME>',
          email: '<EMAIL>',
          url: ''
        }
      })
      .withPrompts({argName: 'alpha-beta'})
      .toPromise();
  });

  it('Creates source file', function () {
    assert.file([
      'src/directives/alphaBeta/alphaBeta.directive.js'
    ]);
  });

  it('Creates external template', function () {
    assert.file([
      'src/directives/alphaBeta/alphaBeta.html'
    ]);
  });

  it('Creates stylus file', function () {
    assert.file([
      'src/directives/alphaBeta/alphaBeta.styl'
    ]);
  });

  it('Creates spec file', function () {
    assert.file([
      'src/directives/alphaBeta/alphaBeta.directive.spec.js'
    ]);
  });
});
{'fraction_non_alphanumeric': 0.1770152505446623, 'fraction_numerical': 0.0027233115468409588, 'mean_word_length': 2.3768382352941178, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2083041', 'n_tokens_mistral': 587, 'n_tokens_neox': 577, 'n_words': 100}