Commit e3746aa4 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] add first very basic test case

parent 016eb714
'use strict';
var path = require('path');
var assert = require('yeoman-generator').assert;
var helpers = require('yeoman-generator').test;
var os = require('os');
describe('sgalinski: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'
]);
});
});
'use strict';
var assert = require('assert');
describe('sgalinski generator', function() {
it('can be imported without blowing up', function() {
var app = require('../app');
assert(typeof app !== 'undefined');
});
});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment