From 81139b7fc8c30705effa85d8203212346429f273 Mon Sep 17 00:00:00 2001 From: Ryuichi Okumura Date: Sat, 15 Nov 2014 17:12:34 +0900 Subject: [PATCH 1/2] Add --no-sort option tests --- tests/options.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/options.js b/tests/options.js index 4190cce2..56586f91 100644 --- a/tests/options.js +++ b/tests/options.js @@ -200,6 +200,12 @@ suite.add(new YUITest.TestCase({ ]); 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', From 1aa0159cd0a3b3f53885069e8776665a9cb54bd0 Mon Sep 17 00:00:00 2001 From: Ryuichi Okumura Date: Sat, 15 Nov 2014 17:16:26 +0900 Subject: [PATCH 2/2] Remove unneeded commas --- tests/options.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/options.js b/tests/options.js index 56586f91..489b1a56 100644 --- a/tests/options.js +++ b/tests/options.js @@ -164,39 +164,39 @@ 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'); }, @@ -208,13 +208,13 @@ suite.add(new YUITest.TestCase({ }, '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'); },