Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
Merge 052ca0c into 87c5daf
Browse files Browse the repository at this point in the history
  • Loading branch information
hzoo committed Mar 18, 2016
2 parents 87c5daf + 052ca0c commit abf08fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/config/generator.js
Expand Up @@ -168,7 +168,7 @@ Generator.prototype._handleViolatedRules = function(errorPrompts, choices) {
errorPrompts.forEach(function(errorPrompt) {
var userChoice = choices[errorPrompt.name];

if (userChoice.toLowerCase() === 'e') {
if (userChoice && userChoice.toLowerCase() === 'e') {
this._config[errorPrompt.associatedRuleName] = null;
}
}, this);
Expand Down
4 changes: 3 additions & 1 deletion test/specs/config/generator.js
Expand Up @@ -9,7 +9,9 @@ var Configuration = require('../../../lib/config/configuration');
var ConfigGenerator = require('../../../lib/config/generator');
var crockfordClone = require('../../data/configs/generator/crockfordClone');

describe.skip('lib/config/generator', function() {
describe('lib/config/generator', function() {
this.timeout(60000);

var _path = path.resolve(__dirname, '../../../lib/config/generator.js');
var crockfordPresetChoice;

Expand Down

0 comments on commit abf08fc

Please sign in to comment.