Skip to content

Commit

Permalink
test: refactor test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
taccisum committed Oct 9, 2019
1 parent 7973490 commit 809caa1
Show file tree
Hide file tree
Showing 2 changed files with 529 additions and 483 deletions.
4 changes: 2 additions & 2 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ module.exports = require('yo-power-generator').getGenerator(obj, {
props.basePath = props.basePackage.replace(/\./g, '/');

props.conditions = {};
if (props.db !== 'none') {
if (props.orm !== 'none') {
if (props.db && props.db !== 'none') {
if (props.orm && props.orm !== 'none') {
props.conditions[props.orm] = true;
if (props.demo) {
props.conditions.crud = true;
Expand Down

0 comments on commit 809caa1

Please sign in to comment.