summaryrefslogtreecommitdiff
path: root/test/test-app.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-app.js')
-rw-r--r--test/test-app.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/test-app.js b/test/test-app.js
new file mode 100644
index 0000000..38e3583
--- /dev/null
+++ b/test/test-app.js
@@ -0,0 +1,28 @@
+/*global describe, beforeEach, it*/
+'use strict';
+
+var path = require('path');
+var assert = require('yeoman-generator').assert;
+var helpers = require('yeoman-generator').test;
+var os = require('os');
+
+describe('unsemantic-express:app', function () {
+ before(function (done) {
+ helpers.run(path.join(__dirname, '../app'))
+ .inDir(path.join(os.tmpdir(), './temp-test'))
+ .withOptions({ 'skip-install': true })
+ .withPrompt({
+ someOption: true
+ })
+ .on('end', done);
+ });
+
+ it('creates files', function () {
+ assert.file([
+ 'bower.json',
+ 'package.json',
+ '.editorconfig',
+ '.jshintrc'
+ ]);
+ });
+});