<commit_before>'use strict';

var path = require('path');
var helpers = require('yeoman-generator').test;
var assert = require('yeoman-assert');

describe('general', function () {
  before(function (done) {
    helpers.run(path.join(__dirname, '../app'))
      .inDir(path.join(__dirname, '.tmp'))
      .withOptions({'skip-install': true})
      .withPrompts({features: []})
      .on('end', done);
  });

  // not testing the actual run of generators yet
  it('can be required without throwing', function () {
    this.app = require('../app');
  });

  it('creates expected files', function () {
    assert.file([
      'package.json',
      'LICENSE',
      'README.md',
      'app/index.html',
      'app/src/app.coffee',
      'app/styl/app.styl',
      'gulpfile.coffee',
      'app/images/apple-touch-icon.png',
      'app/images/favicon.ico',
      '.editorconfig',
      '.gitattributes',
      '.gitignore'
    ]);
  });
});<commit_msg>test: update generator test with yeoman-test package<commit_after>'use strict'

const path = require('path')
const helpers = require('yeoman-test')
const assert = require('yeoman-assert')

describe('general', () => {
  before(function(done) {
    helpers
      .run(path.join(__dirname, '../app'))
      .inDir(path.join(__dirname, '.tmp'))
      .withOptions({ 'skip-install': true })
      .withPrompts({ features: [] })
      .on('end', done)
  })

  // not testing the actual run of generators yet
  it('can be required without throwing', () => {
    this.app = require('../app')
  })

  it('creates expected files', () => {
    assert.file([
      'package.json',
      'LICENSE',
      'README.md',
      'app/index.html',
      'app/src/app.coffee',
      'app/styl/app.styl',
      'gulpfile.coffee',
      'app/images/apple-touch-icon.png',
      'app/images/favicon.ico',
      'test/bootstrap.coffee',
      'test/main.spec.coffee',
      '.editorconfig',
      '.gitattributes',
      '.gitignore',
    ])
  })
})
{'fraction_non_alphanumeric': 0.1917808219178082, 'fraction_numerical': 0.0, 'mean_word_length': 2.706766917293233, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '4177598', 'n_tokens_mistral': 655, 'n_tokens_neox': 638, 'n_words': 121}