Skip to content

Commit

Permalink
Merge branch 'no-sort-test'
Browse files Browse the repository at this point in the history
  • Loading branch information
okuryu committed Nov 17, 2014
2 parents ea6ac6e + 1aa0159 commit ac22343
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions tests/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,51 +164,57 @@ suite.add(new YUITest.TestCase({
},
'test: --no-color': function () {
var options = Y.Options([
'--no-color',
'--no-color'
]);
Assert.isTrue(options.nocolor, 'Failed to set nocolor');
Assert.isFalse(Y.config.useColor, 'Failed to set Y.config.useColor');
},
'test: -N': function () {
var options = Y.Options([
'-N',
'-N'
]);
Assert.isTrue(options.nocolor, 'Failed to set nocolor');
Assert.isFalse(Y.config.useColor, 'Failed to set Y.config.useColor');
},
'test: --no-code': function () {
var options = Y.Options([
'--no-code',
'--no-code'
]);
Assert.isTrue(options.nocode, 'Failed to set nocode');
},
'test: -C': function () {
var options = Y.Options([
'-C',
'-C'
]);
Assert.isTrue(options.nocode, 'Failed to set nocode');
},
'test: --norecurse': function () {
var options = Y.Options([
'--norecurse',
'--norecurse'
]);
Assert.isTrue(options.norecurse, 'Failed to set norecurse');
},
'test: -n': function () {
var options = Y.Options([
'-n',
'-n'
]);
Assert.isTrue(options.norecurse, 'Failed to set norecurse');
},
'test: --no-sort': function () {
var options = Y.Options([
'--no-sort'
]);
Assert.isTrue(options.dontsortfields, 'Failed to set dontsortfields');
},
'test: --selleck': function () {
var options = Y.Options([
'--selleck',
'--selleck'
]);
Assert.isTrue(options.selleck, 'Failed to set selleck');
},
'test: -S': function () {
var options = Y.Options([
'-S',
'-S'
]);
Assert.isTrue(options.selleck, 'Failed to set selleck');
},
Expand Down

0 comments on commit ac22343

Please sign in to comment.