<commit_before>/*yeoman-test*/
const helpers = require('yeoman-test');
const assert = require('yeoman-assert');
const fs = require('fs');
const fsextra = require('fs-extra');
const path = require('path');

const basedir = path.join(__dirname, '../generators/app');

describe('yo:phaser-h5', () => {

    let tmpdir;

    beforeEach(() => {
        return helpers.run(basedir)
            .inTmpDir(dir => {
                tmpdir = dir;
            })
            .withOptions({ projectName: 'temp' }, { projectDesc: ' ' }, { projectLicense: 'MIT' }, { projectSass: true });
    });

    afterEach(() => fsextra.remove(tmpdir));

    it('creates expected files', () => {

        const expected = [
            // add files you expect to exist here.
            'gulpfile.js',
            '.jshintrc',
            'src/index.html',
            'package.json',
            'src/assets/js/main.js',
            'src/assets/js/entities/Gesture.js',
            'src/assets/js/entities/MovieClip.js',
            'src/assets/js/entities/VideoConfig.js',
            'src/assets/js/states/boot.js',
            'src/assets/js/states/state1.js',
            'src/assets/js/states/preloader.js'
        ];

        const files = expected.map(i => path.join(tmpdir, i));
        assert.file(files);
    });
});<commit_msg>:white_check_mark: Adding tests<commit_after>/*yeoman-test*/
const helpers = require('yeoman-test');
const assert = require('yeoman-assert');
const fs = require('fs');
const fsextra = require('fs-extra');
const path = require('path');

const basedir = path.join(__dirname, '../generators/app');

describe('yo:phaser-h5', () => {

    let tmpdir;

    beforeEach(() => {
        return helpers.run(basedir)
            .inTmpDir(dir => {
                tmpdir = dir;
            })
            .withPrompts({ projectName: 'temp' }, { projectDesc: ' ' }, { projectLicense: 'MIT' }, { projectSass: true });
    });

    afterEach(() => fsextra.remove(tmpdir));

    it('creates expected files', () => {

        const expected = [
            // add files you expect to exist here.
            'gulpfile.js',
            '.jshintrc',
            'src/index.html',
            'package.json',
            'src/assets/js/main.js',
            'src/assets/js/entities/Gesture.js',
            'src/assets/js/entities/MovieClip.js',
            'src/assets/js/entities/VideoConfig.js',
            'src/assets/js/states/boot.js',
            'src/assets/js/states/state1.js',
            'src/assets/js/states/preloader.js',
            'src/assets/css/sass.scss'
        ];
        const files = expected.map(i => path.join(tmpdir, i));
        assert.file(files);
    });
});
{'fraction_non_alphanumeric': 0.1739292364990689, 'fraction_numerical': 0.0014897579143389199, 'mean_word_length': 2.0350282485875706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '1420720', 'n_tokens_mistral': 848, 'n_tokens_neox': 839, 'n_words': 139}