From d0fc6b590bc6a3f442f9638f6718dcb7b85d9330 Mon Sep 17 00:00:00 2001 From: Romain Date: Sat, 9 May 2020 18:24:46 +0200 Subject: [PATCH] test(cli) boolean options are case sensitive --- test/bin/options.spec.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/bin/options.spec.js b/test/bin/options.spec.js index c5a36d8..077022d 100644 --- a/test/bin/options.spec.js +++ b/test/bin/options.spec.js @@ -19,6 +19,12 @@ describe('options', function () { const opts = options.get(BASE_ARGS.concat(['--no-usage-stats'])) should(opts.usageStats).eql(false) }) + it('is case-sensitive for booleans', () => { + const opts1 = options.get(BASE_ARGS.concat(['--include-videos', 'false'])) + should(opts1.includeVideos).eql(false) + const opts2 = options.get(BASE_ARGS.concat(['--include-videos', 'FALSE'])) + should(opts2.includeVideos).eql(true) + }) }) describe('paths', () => { it('--input is converted to an absolute path', () => {