Skip to content

Commit

Permalink
Updated tests to pass locally
Browse files Browse the repository at this point in the history
  • Loading branch information
sthzg committed Aug 7, 2016
1 parent 484ee81 commit ae94811
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/_helpers/index.js
Expand Up @@ -18,7 +18,7 @@ function invalidatePeerDependency(dir) {
fs.writeFileSync(packagePath, content);
}

function moveDefaultFiles(dir, includeSubgenextJson = false, includeExtgen = false) {
function moveDefaultFiles(dir, includeYoRc = false, includeExtgen = false) {
fs.copySync(
path.join(resourcesDir, '.package.json'),
path.join(dir, 'package.json')
Expand All @@ -32,7 +32,7 @@ function moveDefaultFiles(dir, includeSubgenextJson = false, includeExtgen = fal
path.join(dir, '/node_modules/contrib-subgen-yoburger-bbq')
);

if (includeSubgenextJson) {
if (includeYoRc) {
fs.copySync(
path.join(resourcesDir, '.yo-rc.json'),
path.join(dir, '.yo-rc.json')
Expand Down
2 changes: 1 addition & 1 deletion test/generators/activate/indexTest.js
Expand Up @@ -60,7 +60,7 @@ describe('subgenext:activate bbq --host=yoburger', () => {
.run(tHelpers.genPath('activate'))
.withGenerators([path.join(tHelpers.nodeModDir, 'generator-yoburger')])
.inTmpDir(function (dir) {
tHelpers.moveDefaultFiles(dir);
tHelpers.moveDefaultFiles(dir, false);
tHelpers.invalidatePeerDependency(dir);
})
.withArguments(['bbq'])
Expand Down
2 changes: 1 addition & 1 deletion test/generators/deactivate/indexTest.js
Expand Up @@ -19,7 +19,7 @@ describe('subgenext:deactivate bbq --host=yoburger', () => {
.run(tHelpers.genPath('deactivate'))
.withGenerators([path.join(tHelpers.nodeModDir, 'generator-yoburger')])
.inTmpDir(function (dir) {
tHelpers.moveDefaultFiles(dir, false, true);
tHelpers.moveDefaultFiles(dir, false, false);
})
.withArguments(['bbq'])
.withOptions({ host: 'yoburger' })
Expand Down

0 comments on commit ae94811

Please sign in to comment.