Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for --no-sort option #282

Merged
merged 2 commits into from
Nov 17, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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