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': {
group: 'Deprecated:',
description: 'Enable anonymous usage statistics',
type: 'boolean',
'default': false
type: 'boolean'
}
}

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

Loading…
Cancel
Save