Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Commit

Permalink
work on #241: constant -> generators/constant
Browse files Browse the repository at this point in the history
  • Loading branch information
gruppjo committed Sep 3, 2015
1 parent 964bdd3 commit c58f867
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion constant/index.js → generators/constant/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
var yeoman = require('yeoman-generator');
var utils = require('../utils/utils.js');
var utils = require('../../utils/utils.js');

module.exports = yeoman.generators.NamedBase.extend({
initializing: function () {
Expand Down
14 changes: 7 additions & 7 deletions test/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('m', function () {
helpers.run(path.join(__dirname, '../generators/app'))
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../module'),
path.join(__dirname, '../constant'),
path.join(__dirname, '../generators/constant'),
path.join(__dirname, '../controller'),
path.join(__dirname, '../template'),
path.join(__dirname, '../service')
Expand Down Expand Up @@ -130,7 +130,7 @@ describe('m', function () {
helpers.run(path.join(__dirname, '../generators/app'))
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../module'),
path.join(__dirname, '../constant'),
path.join(__dirname, '../generators/constant'),
path.join(__dirname, '../controller'),
path.join(__dirname, '../template'),
path.join(__dirname, '../service')
Expand All @@ -154,7 +154,7 @@ describe('m', function () {
helpers.run(path.join(__dirname, '../generators/app'))
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../module'),
path.join(__dirname, '../constant'),
path.join(__dirname, '../generators/constant'),
path.join(__dirname, '../controller'),
path.join(__dirname, '../template'),
path.join(__dirname, '../service')
Expand All @@ -178,7 +178,7 @@ describe('m', function () {
helpers.run(path.join(__dirname, '../generators/app'))
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../module'),
path.join(__dirname, '../constant'),
path.join(__dirname, '../generators/constant'),
path.join(__dirname, '../controller'),
path.join(__dirname, '../template'),
path.join(__dirname, '../service')
Expand Down Expand Up @@ -221,7 +221,7 @@ describe('m', function () {
.withOptions({ 'skip-install': true, 'skip-sdk': true, 'skip-prompts': true}) // execute with options
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../module'),
path.join(__dirname, '../constant'),
path.join(__dirname, '../generators/constant'),
path.join(__dirname, '../controller'),
path.join(__dirname, '../template'),
path.join(__dirname, '../service')
Expand All @@ -241,7 +241,7 @@ describe('m', function () {
.withOptions({ 'skip-install': true, 'skip-sdk': true, 'skip-prompts': true, 'ios-only': true}) // execute with options
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../module'),
path.join(__dirname, '../constant'),
path.join(__dirname, '../generators/constant'),
path.join(__dirname, '../controller'),
path.join(__dirname, '../template'),
path.join(__dirname, '../service')
Expand All @@ -261,7 +261,7 @@ describe('m', function () {
.withOptions({ 'skip-install': true, 'skip-sdk': true, 'skip-prompts': true, 'cordova': false}) // execute with options
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../module'),
path.join(__dirname, '../constant'),
path.join(__dirname, '../generators/constant'),
path.join(__dirname, '../controller'),
path.join(__dirname, '../template'),
path.join(__dirname, '../service')
Expand Down
6 changes: 3 additions & 3 deletions test/constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var config = require(path.join(__dirname, '../utils/config.js'));
describe('m:constant', function () {
describe('m:constant some', function () {
before(function (done) {
helpers.run(path.join(__dirname, '../constant'))
helpers.run(path.join(__dirname, '../generators/constant'))
.withArguments('some')
.on('end', done);
});
Expand All @@ -25,7 +25,7 @@ describe('m:constant', function () {

describe('m:constant someThing myModule', function () {
before(function (done) {
helpers.run(path.join(__dirname, '../constant'))
helpers.run(path.join(__dirname, '../generators/constant'))
.withArguments('someThing myModule')
.on('end', done);
});
Expand All @@ -42,7 +42,7 @@ describe('m:constant', function () {

describe('m:constant myConstant --template=config', function () {
before(function (done) {
helpers.run(path.join(__dirname, '../constant'))
helpers.run(path.join(__dirname, '../generators/constant'))
.withArguments('myConstant')
.withOptions({ template: 'config' })
.on('end', done);
Expand Down
14 changes: 7 additions & 7 deletions test/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ describe('m:module', function () {
path.join(__dirname, '../controller'),
path.join(__dirname, '../template'),
path.join(__dirname, '../service'),
path.join(__dirname, '../constant')
path.join(__dirname, '../generators/constant')
])
.withArguments('main')
.withPrompts({ template: 'tabs' })
Expand All @@ -200,7 +200,7 @@ describe('m:module', function () {
path.join(__dirname, '../controller'),
path.join(__dirname, '../template'),
path.join(__dirname, '../service'),
path.join(__dirname, '../constant')
path.join(__dirname, '../generators/constant')
])
.withArguments('main')
.withPrompts({ template: 'tabs'})
Expand All @@ -219,7 +219,7 @@ describe('m:module', function () {
path.join(__dirname, '../controller'),
path.join(__dirname, '../template'),
path.join(__dirname, '../service'),
path.join(__dirname, '../constant')
path.join(__dirname, '../generators/constant')
])
.withArguments('myModule')
.withPrompts({ template: 'tabs' })
Expand Down Expand Up @@ -319,7 +319,7 @@ describe('m:module', function () {
path.join(__dirname, '../controller'),
path.join(__dirname, '../template'),
path.join(__dirname, '../service'),
path.join(__dirname, '../constant')
path.join(__dirname, '../generators/constant')
])
.withArguments('main')
.withPrompts({ template: 'sidemenu' })
Expand All @@ -340,7 +340,7 @@ describe('m:module', function () {
path.join(__dirname, '../controller'),
path.join(__dirname, '../template'),
path.join(__dirname, '../service'),
path.join(__dirname, '../constant')
path.join(__dirname, '../generators/constant')
])
.withArguments('myModule')
.withPrompts({ template: 'sidemenu' })
Expand Down Expand Up @@ -379,7 +379,7 @@ describe('m:module', function () {
path.join(__dirname, '../controller'),
path.join(__dirname, '../template'),
path.join(__dirname, '../service'),
path.join(__dirname, '../constant')
path.join(__dirname, '../generators/constant')
])
.withPrompts({ template: 'blank' })
.withOptions(options)
Expand All @@ -399,7 +399,7 @@ describe('m:module', function () {
path.join(__dirname, '../controller'),
path.join(__dirname, '../template'),
path.join(__dirname, '../service'),
path.join(__dirname, '../constant')
path.join(__dirname, '../generators/constant')
])
.withPrompts({ template: 'blank' })
.withArguments('myModule')
Expand Down

0 comments on commit c58f867

Please sign in to comment.