fix: remove warning about deprecated usage-stats because of default value

pull/356/head
Romain 6 months ago
parent 0b76067d7c
commit fc6d0d7bc3

@ -441,8 +441,7 @@ const OPTIONS = {
'usage-stats': { 'usage-stats': {
group: 'Deprecated:', group: 'Deprecated:',
description: 'Enable anonymous usage statistics', description: 'Enable anonymous usage statistics',
type: 'boolean', type: 'boolean'
'default': false
} }
} }

@ -30,8 +30,8 @@ describe('options', function () {
should(opts.themePath).eql('foobar') should(opts.themePath).eql('foobar')
}) })
it('can use --no to reverse a boolean', () => { it('can use --no to reverse a boolean', () => {
const opts = options.get(BASE_ARGS.concat(['--no-usage-stats'])) const opts = options.get(BASE_ARGS.concat(['--no-cleanup']))
should(opts.usageStats).eql(false) should(opts.cleanup).eql(false)
}) })
it('is case-sensitive for booleans', () => { it('is case-sensitive for booleans', () => {
const opts1 = options.get(BASE_ARGS.concat(['--include-videos', 'false'])) const opts1 = options.get(BASE_ARGS.concat(['--include-videos', 'false']))

Loading…
Cancel
Save