Initial commit
This commit is contained in:
26
node_modules/cliss/test/specs/fn-cli/specs.js
generated
vendored
Normal file
26
node_modules/cliss/test/specs/fn-cli/specs.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
|
||||
const tests = [
|
||||
{
|
||||
description: 'cli function with no object spec definition',
|
||||
input: '--param1=A --param2=B',
|
||||
output: `A-B`
|
||||
},
|
||||
|
||||
{
|
||||
description: 'Passing in only one argument (using default values)',
|
||||
input: '--param2=B',
|
||||
output: `defaultParam1-B`
|
||||
},
|
||||
|
||||
{
|
||||
input: '--help',
|
||||
output: `
|
||||
Options:
|
||||
|
||||
--param1
|
||||
--param2
|
||||
`
|
||||
}];
|
||||
|
||||
module.exports = tests;
|
||||
Reference in New Issue
Block a user