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

describe('generator-ivh-react-component:app', function() {
  before(function() {
    return helpers.run(path.join(__dirname, '../generators/app'))
      .withPrompts({
        moduleName: 'foo-bar',
        className: 'FooBar',
        desc: 'Super blargus',
        useDotFiles: 'y',
        installDeps: 'y'
      })
      .toPromise()
  })

  it('creates files', function() {
    assert.file([
      '.babelrc',
      '.editorconfig',
      '.eslintrc.js',
      '.gitignore',
      'README.md',
      'package.json',
      'postcss.config.js',
      'src/index.js',
      'src/mocks/fileMock.js',
      'src/mocks/styleMock.js',
      'src/components/foo-bar/index.js',
      'src/components/foo-bar/FooBar.js',
      'src/components/foo-bar/FooBar.css',
      'src/components/foo-bar/FooBar.spec.js',
      'webpack.config.js'
    ])
  })
})
<commit_msg>test: Specify values for all prompts<commit_after>'use strict'
const path = require('path')
const assert = require('yeoman-assert')
const helpers = require('yeoman-test')

describe('generator-ivh-react-component:app', function() {
  before(function() {
    return helpers.run(path.join(__dirname, '../generators/app'))
      .withPrompts({
        moduleName: 'foo-bar',
        className: 'FooBar',
        desc: 'Super blargus',
        useDotFiles: 'y',
        includeScss: 'y',
        installDeps: 'n'
      })
      .toPromise()
  })

  it('creates files', function() {
    assert.file([
      '.babelrc',
      '.editorconfig',
      '.eslintrc.js',
      '.gitignore',
      'README.md',
      'package.json',
      'postcss.config.js',
      'src/index.js',
      'src/mocks/fileMock.js',
      'src/mocks/styleMock.js',
      'src/components/foo-bar/index.js',
      'src/components/foo-bar/FooBar.js',
      'src/components/foo-bar/FooBar.css',
      'src/components/foo-bar/FooBar.spec.js',
      'webpack.config.js'
    ])
  })
})

{'fraction_non_alphanumeric': 0.17883390494855464, 'fraction_numerical': 0.0, 'mean_word_length': 2.484641638225256, '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': '6145223', 'n_tokens_mistral': 712, 'n_tokens_neox': 694, 'n_words': 105}