Skip to content

Commit fa9e6b1

Browse files
committed
Nope, not working still...
1 parent 0765881 commit fa9e6b1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

generators/app/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module.exports = generators.Base.extend({
2222
if (!dependencies) {
2323
this.log(chalk.red('You are missing one or more dependencies!'));
2424
this.log(chalk.yellow('Make sure you have the required dependencies, or that they are in $PATH'));
25+
shelljs.exit(1);
2526
}
2627
},
2728

test/app.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ var assert = require('yeoman-assert');
55
var helpers = require('yeoman-test');
66

77
test.before(() => {
8+
var deps = [
9+
[helpers.createDummyGenerator(), 'jekyllized:boilerplate'],
10+
[helpers.createDummyGenerator(), 'jekyllized:jekyll'],
11+
[helpers.createDummyGenerator(), 'jekyllized:gulp']
12+
];
13+
814
return helpers.run(path.join(__dirname, '../generators/app'))
915
.withPrompts({
1016
projectName: 'jekyllized',
@@ -17,6 +23,7 @@ test.before(() => {
1723
jekyllPermalinks: 'pretty'
1824
})
1925
.withOptions({'skip-install': true})
26+
.withGenerators(deps)
2027
.toPromise();
2128
});
2229

0 commit comments

Comments
 (0)