/*global describe, before, it*/
'use strict';

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

describe('angular with gulp and browserify generator', function () {
  before(function(done) {
    helpers.run(path.join(__dirname, '../generators/app'))
      .withOptions({
        skipInstall: true,
      })
      .withPrompts({
        appname: 'temp'
      })
      .on('end', done);
  });

  it('it should create dotfiles files', function () {
    assert.file([
      'package.json',
      'gulpfile.babel.js',
      '.jshintrc',
      '.gitignore'
    ]);
  });

  it('it should create nested files and folders', function () {
    assert.file([
      'app/index.html',
      'app/js/main.js',
      'app/js/controllers/index.js',
      'gulp/index.js',
      'gulp/tasks/browserify.js',
      'test/karma.conf.js',
      'test/e2e/example_spec.js',
      'test/unit/controllers/example_spec.js'
    ]);
  });

  it('should generate correct package.json', function () {
    assert.fileContent('package.json',  /"name": "temp"/);
    assert.noFileContent('package.json',  /"author":/);
  });
});

/*global describe, before, it*/
'use strict';

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

describe('angular with gulp and browserify generator', function () {
  before(function(done) {
    helpers.run(path.join(__dirname, '../generators/app'))
      .withOptions({
        skipInstall: true,
      })
      .withPrompts({
        appname: 'temp'
      })
      .on('end', done);
  });

  it('it should create dotfiles files', function () {
    assert.file([
      'package.json',
      'gulpfile.babel.js',
      '.eslintrc',
      '.gitignore'
    ]);
  });

  it('it should create nested files and folders', function () {
    assert.file([
      'app/index.html',
      'app/js/main.js',
      'app/js/controllers/index.js',
      'gulp/index.js',
      'gulp/tasks/browserify.js',
      'test/karma.conf.js',
      'test/e2e/example_spec.js',
      'test/unit/controllers/example_spec.js'
    ]);
  });

  it('should generate correct package.json', function () {
    assert.fileContent('package.json',  /"name": "temp"/);
    assert.noFileContent('package.json',  /"author":/);
  });
});

Check for eslint instead of jshint
Check for eslint instead of jshint
