<commit_before>/*global describe, beforeEach, it*/
'use strict';

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


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

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

  it('creates expected files', function (done) {
    var expected = [
      'package.json',
      'app/index.js',
      'README.md'
    ];

    helpers.mockPrompt(this.app, {
      'githubUser': 'peutetre',
      'appName': 'test-app',
      'appId': 'com.42loops.test',
      'appDescription': 'This is a testing app',
      'dependencies': 'q, zanimo'
    });

    this.app.run({}, function () {
      helpers.assertFiles(expected);
      done();
    });
  });
});
<commit_msg>ridiculous tests<commit_after>/*global describe, beforeEach, it*/
'use strict';

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


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

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

  it('creates expected files', function (done) {
    this.timeout(60000);
    var expected = [
      'package.json',
      'app/index.js',
      'README.md',
      '.gitignore',
      'style/styles.styl',
      'www/index.html',
      'www/config.xml',
      'platforms'
    ];

    helpers.mockPrompt(this.app, {
      'githubUser': 'peutetre',
      'appName': 'test-app',
      'appId': 'com.loops.test',
      'appDescription': 'This is a testing app',
      'dependencies': 'q, zanimo',
      'targets': ['ios', 'android'],
      'plugins': []
    });

    this.app.run({}, function () {
      helpers.assertFiles(expected);
      done();
    });
  });
});

{'fraction_non_alphanumeric': 0.18932955618508027, 'fraction_numerical': 0.0033050047214353163, 'mean_word_length': 2.514096185737977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 1}, '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': '4785247', 'n_tokens_mistral': 710, 'n_tokens_neox': 692, 'n_words': 131}