const assert = require('yeoman-assert');
const helpers = require('yeoman-test');
const Lab = require('lab');
const lab = exports.lab = Lab.script();
const path = require('path');

lab.before(done => {
	helpers.run(path.join(__dirname, '../app'))
		.withPrompts({
			title: 'Awesome Awesomeness',
			description: 'A curated list of awesomeness',
			username: 'Awesomov Awesomovic',
			email: 'awe@so.me'
		})
		.on('end', done);
});

lab.test('all files are created', done => {
	assert.file([
		'.gitattributes',
		'code-of-conduct.md',
		'contributing.md',
		'readme.md'
	]);
	done();
});

lab.experiment('code-of-conduct.md', () => {
	lab.test('contains email', done => {
		assert.fileContent('code-of-conduct.md', 'awe@so.me');
		done();
	});
});

lab.experiment('readme.md', () => {
	lab.test('contains title', done => {
		assert.fileContent('readme.md', 'Awesome Awesomeness');
		done();
	});

	lab.test('contains description', done => {
		assert.fileContent('readme.md', 'A curated list of awesomeness');
		done();
	});

	lab.test('contains username', done => {
		assert.fileContent('readme.md', 'Awesomov Awesomovic');
		done();
	});
});

@@ -1,12 +1,43 @@
+const path = require('path');%0A%0A
 const assert
@@ -61,24 +61,24 @@
 n-assert');%0A
-
 const helper
@@ -101,24 +101,25 @@
 man-test');%0A
+%0A
 const Lab = 
@@ -130,24 +130,24 @@
 ire('lab');%0A
+
 const lab = 
@@ -177,38 +177,8 @@
 t();
-%0Aconst path = require('path');
 %0A%0Ala

Reorganize imports