'use strict';

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

describe('genreact:component', function() {
  before(function(done) {
    helpers.run(path.join(__dirname, '../component'))
      .inDir(path.join(os.tmpdir(), './temp-test'))
      .withArguments('TestComponent')
      .on('end', done);
  });

  it('creates files', function() {
    assert.file([
      'components/TestComponent/index.js',
      'components/TestComponent/styles.css',
      'components/TestComponent/__tests__/index.js',
    ]);
  });
});

