Permalink
Browse files

Removing old lint preferred option as it's no longer used

  • Loading branch information...
1 parent 80619cc commit 358f1db81d47262b51bd0e8fc1a4aefccce69dfa @davglass davglass committed Mar 20, 2013
Showing with 0 additions and 27 deletions.
  1. +0 −3 lib/args.js
  2. +0 −24 tests/1-args.js
View
@@ -68,9 +68,6 @@ var setDefaults = function(parsed) {
if (parsed === undefined) {
parsed = clean();
}
- if (parsed.lint !== false) {
- parsed.lint = parsed.lint || 'preferred';
- }
//Default true
parsed.jsstamp = (parsed.jsstamp === undefined || parsed.jsstamp) ? true : false;
parsed.coverage = (parsed.coverage === undefined || parsed.coverage) ? true : false;
View
@@ -133,30 +133,6 @@ var tests = {
assert.equal(topic.fail, true);
}
},
- 'should parse --lint preferred': {
- topic: function() {
- return args.parse(['', '', '--lint', 'preferred']);
- },
- 'should parse defaults': function(topic) {
- assert.equal(topic.lint, 'preferred');
- }
- },
- 'should parse --lint foobar as preferred': {
- topic: function() {
- return args.parse(['', '', '--lint', 'foobar']);
- },
- 'should parse defaults': function(topic) {
- assert.equal(topic.lint, 'preferred');
- }
- },
- 'should parse no --lint as preferred': {
- topic: function() {
- return args.parse(['', '']);
- },
- 'should parse defaults': function(topic) {
- assert.equal(topic.lint, 'preferred');
- }
- },
'should parse -m foo': {
topic: function() {
return args.parse(['', '', '-m', 'foo']);

0 comments on commit 358f1db

Please sign in to comment.