diff --git a/lib/test/helpers.js b/lib/test/helpers.js index 3486df98..a3f05794 100644 --- a/lib/test/helpers.js +++ b/lib/test/helpers.js @@ -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)); diff --git a/lib/test/run-context.js b/lib/test/run-context.js index da3247e8..80b6db0b 100644 --- a/lib/test/run-context.js +++ b/lib/test/run-context.js @@ -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); } @@ -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) {