Skip to content

Commit

Permalink
work on #742 withLocalConfig - update jsDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
gruppjo committed Feb 6, 2015
1 parent 3726d30 commit 9634399
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/test/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ exports.restorePrompt = function (generator) {
* Provide mocked values to the config, by creating a .yo-rc.json in the testdirectory.
* Needs to be called before the generator is created
* @param {Generator} generator - a Yeoman generator
* @param {Ojbect} localConfig - localConfig - should look just like if you called config.getAll()
* @param {Ojbect} localConfig - localConfig - should look just like your .yo-rc.json content
*/
exports.mockLocalConfig = function (generator, localConfig) {
fs.writeFileSync('.yo-rc.json', JSON.stringify(localConfig, null, 2));
Expand Down
3 changes: 1 addition & 2 deletions lib/test/run-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ RunContext.prototype._run = function () {
}

if (this.localConfig) { // only mock local config when withLocalConfig was called
console.log(namespace);
helpers.mockLocalConfig(this.generator, this.localConfig);
}

Expand Down Expand Up @@ -204,7 +203,7 @@ RunContext.prototype.withGenerators = function (dependencies) {

/**
* mock the local configuration with the provided config
* @param {Object} localConfig - should look just like if you called config.getAll()
* @param {Object} localConfig - - should look just like your .yo-rc.json content
* @return {this}
*/
RunContext.prototype.withLocalConfig = function (localConfig) {
Expand Down

0 comments on commit 9634399

Please sign in to comment.