<commit_before>/*global describe, beforeEach, it */
'use strict';
var path = require('path');
var helpers = require('yeoman-generator').test;

describe('linkfb generator', function () {
    beforeEach(function (done) {
        helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
            if (err) {
                return done(err);
            }

            this.app = helpers.createGenerator('linkfb:app', [
                '../../app'
            ]);
            done();
        }.bind(this));
    });

    it('creates expected files', function (done) {
        var expected = [
            '../../.gitignore',
            '../../.travis.yml',
            '../../package.json',
            '../../README.md',
            '../../app/templates/_README.js',
            '../../app/templates/_bower.js',
            '../../app/templates/_gruntfile.js',
            '../../app/templates/_linkfb.js',
            '../../app/templates/_package.js'
        ];

        helpers.mockPrompt(this.app, {
            'appName'        : true,
            'appDescription' : true,
            'appVersion'     : true
        });
        this.app.options['skip-install'] = true;
        this.app.run({}, function () {
            helpers.assertFile(expected);
            done();
        });
    });
});<commit_msg>Arrgggh!<commit_after>/*global describe, beforeEach, it */
'use strict';
var path = require('path');
var helpers = require('yeoman-generator').test;

describe('linkfb generator', function () {
    beforeEach(function (done) {
        helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
            if (err) {
                return done(err);
            }

            this.app = helpers.createGenerator('linkfb:app', [
                '../../app'
            ]);
            done();
        }.bind(this));
    });

    it('creates expected files', function (done) {
        var expected = [
            '../../.gitignore',
            '../../.travis.yml',
            '../../package.json',
            '../../README.md',
            '../../app/templates/_README.md',
            '../../app/templates/_bower.json',
            '../../app/templates/_gruntfile.js',
            '../../app/templates/_linkfb.js',
            '../../app/templates/_package.json'
        ];

        helpers.mockPrompt(this.app, {
            'appName'        : true,
            'appDescription' : true,
            'appVersion'     : true
        });
        this.app.options['skip-install'] = true;
        this.app.run({}, function () {
            helpers.assertFile(expected);
            done();
        });
    });
});
{'fraction_non_alphanumeric': 0.19092627599243855, 'fraction_numerical': 0.0, 'mean_word_length': 1.4208600182982616, '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': '2059975', 'n_tokens_mistral': 724, 'n_tokens_neox': 729, 'n_words': 118}