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

describe('generator-typings:app', function () {
  before(function (done) {
    this.timeout(30000);
    helpers.run(path.join(__dirname, '../generators/app'))
      .withPrompts({
        sourceUri: 'facebook/reactDOM',
        projectUri: 'unional/typed-reactDOM',
        isNpm: false,
        username: 'unional'
      })
      .on('end', done);
  });

  it('creates files', function () {
    assert.file([
      '.vscode/settings.json',
      'test/test.ts',
      '.editorconfig',
      '.gitignore',
      'LICENSE',
      'index.d.ts',
      'README.md',
      'package.json',
      'typings.json',
      'tsconfig.json'
    ]);
  });
});

@@ -137,26 +137,8 @@
 be('
-generator-typings:
 app'
@@ -201,9 +201,9 @@
 out(
-3
+6
 0000
@@ -309,25 +309,25 @@
 i: '
-facebook/reactDOM
+visionmedia/batch
 ',%0A 
@@ -350,67 +350,168 @@
 i: '
-unional/typed-reactDOM',%0A        isNpm: false,%0A        user
+typed-typings/npm-batch',%0A        // Set to false to avoid longer test time.%0A        isNpm: false,%0A        username: 'unional',%0A        license: 'MIT',%0A        
 name

Increase timeout