Skip to content

Commit

Permalink
fix(usage): additional test help message indentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mael LE GUEN committed Apr 8, 2020
1 parent 192da22 commit 20f7535
Showing 1 changed file with 50 additions and 50 deletions.
100 changes: 50 additions & 50 deletions test/usage.js
Expand Up @@ -772,10 +772,10 @@ describe('usage tests', () => {
r.errors.join('\n').split(/\n+/).should.deep.equal([
'Usage: usage [options]',
'Options:',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' --foo, -f foo option',
' --bar, -b bar option',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' -f, --foo foo option',
' -b, --bar bar option',
'Not enough arguments following: f'
])
})
Expand All @@ -801,10 +801,10 @@ describe('usage tests', () => {
r.errors.join('\n').split(/\n+/).should.deep.equal([
'Usage: usage [options]',
'Options:',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' --foo, -f foo option',
' --bar, -b bar option',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' -f, --foo foo option',
' -b, --bar bar option',
'Not enough arguments following: bar'
])
})
Expand Down Expand Up @@ -833,10 +833,10 @@ describe('usage tests', () => {
r.errors.join('\n').split(/\n+/).should.deep.equal([
'Usage: usage [options]',
'Options:',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' --foo, -f foo option',
' --bar, -b bar option',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' -f, --foo foo option',
' -b, --bar bar option',
'Not enough arguments following: f'
])
})
Expand Down Expand Up @@ -883,10 +883,10 @@ describe('usage tests', () => {
r.errors.join('\n').split(/\n+/).should.deep.equal([
'Usage: usage [options]',
'Options:',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' --foo, -f [required]',
' --bar, -b [required]',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' -f, --foo [required]',
' -b, --bar [required]',
'Unknown argument: baz'
])
r.should.have.property('logs').with.length(0)
Expand Down Expand Up @@ -988,10 +988,10 @@ describe('usage tests', () => {
r.errors.join('\n').split(/\n+/).should.deep.equal([
'Usage: usage [options]',
'Options:',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' --foo, -f foo option',
' --bar, -b bar option',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' -f, --foo foo option',
' -b, --bar bar option',
'Unknown argument: baz'
])
r.should.have.property('logs').with.length(0)
Expand Down Expand Up @@ -1025,10 +1025,10 @@ describe('usage tests', () => {
r.errors.join('\n').split(/\n+/).should.deep.equal([
'Usage: usage [options]',
'Options:',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' --foo, -f foo option',
' --bar, -b bar option',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' -f, --foo foo option',
' -b, --bar bar option',
'Unknown arguments: baz, q'
])
r.should.have.property('logs').with.length(0)
Expand Down Expand Up @@ -1243,9 +1243,9 @@ describe('usage tests', () => {
r.should.have.property('logs')
r.logs.join('\n').split(/\n+/).should.deep.equal([
'Options:',
' -1 Negative one [boolean]',
' --help Show help [boolean]',
' --version Show version number [boolean]'
' -1 Negative one [boolean]',
' --help Show help [boolean]',
' --version Show version number [boolean]'
])
})

Expand All @@ -1266,9 +1266,9 @@ describe('usage tests', () => {
r.should.have.property('logs')
r.logs.join('\n').split(/\n+/).should.deep.equal([
'Options:',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' --negativeone, -1 Negative one [boolean]'
' --help Show help [boolean]',
' --version Show version number [boolean]',
' -1, --negativeone Negative one [boolean]'
])
})

Expand Down Expand Up @@ -1316,9 +1316,9 @@ describe('usage tests', () => {
r.logs.join('\n').split(/\n+/).should.deep.equal([
'Usage: usage options',
'Options:',
' --help, -h Show help [boolean]',
' --version Show version number [boolean]',
' --some-opt Some option [required]'
' -h, --help Show help [boolean]',
' --version Show version number [boolean]',
' --some-opt Some option [required]'
])
})

Expand All @@ -1345,9 +1345,9 @@ describe('usage tests', () => {
r.logs.join('\n').split(/\n+/).should.deep.equal([
'Usage: usage options',
'Options:',
' --help, -h Show help [boolean]',
' --version Show version number [boolean]',
' --some-opt Some option [required]'
' -h, --help Show help [boolean]',
' --version Show version number [boolean]',
' --some-opt Some option [required]'
])
})
})
Expand Down Expand Up @@ -2656,9 +2656,9 @@ describe('usage tests', () => {

r.errors.join('\n').split(/\n+/).should.deep.equal([
'Options:',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' --foo, -f foo option'
' --help Show help [boolean]',
' --version Show version number [boolean]',
' -f, --foo foo option'
])
})

Expand All @@ -2676,9 +2676,9 @@ describe('usage tests', () => {

r.errors.join('\n').split(/\n+/).should.deep.equal([
'Options:',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' --foo, -f foo option'
' --help Show help [boolean]',
' --version Show version number [boolean]',
' -f, --foo foo option'
])
})

Expand All @@ -2697,9 +2697,9 @@ describe('usage tests', () => {
r.errors.length.should.eql(0)
r.logs.join('\n').split(/\n+/).should.deep.equal([
'Options:',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' --foo, -f foo option'
' --help Show help [boolean]',
' --version Show version number [boolean]',
' -f, --foo foo option'
])
})

Expand All @@ -2715,9 +2715,9 @@ describe('usage tests', () => {
function printCallback (msg) {
msg.split(/\n+/).should.deep.equal([
'Options:',
' --help Show help [boolean]',
' --version Show version number [boolean]',
' --foo, -f foo option'
' --help Show help [boolean]',
' --version Show version number [boolean]',
' -f, --foo foo option'
])
return done()
}
Expand Down Expand Up @@ -2956,8 +2956,8 @@ describe('usage tests', () => {

r.logs[0].split('\n').should.deep.equal([
'Magic Variable:',
' -h, --help Show help [boolean]',
' --version Show version number [boolean]'
' -h, --help Show help [boolean]',
' --version Show version number [boolean]'
])
})

Expand Down

0 comments on commit 20f7535

Please sign in to comment.