Files
Plastic-Raspi-5/node_modules/magicli/tests/test-modules/object-flat/specs.js

60 lines
923 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use strict';
const tests = [{
description: 'Version --version',
input: '--version',
output: `0.0.0`
},{
description: 'Help --help',
input: '--help',
output: `
Description:
Test object-flat
Usage:
$ object-flat <command>
Commands:
methodA
methodB
`
}, {
description: 'methodA --help',
input: 'methodA --help',
output: `
Usage:
$ object-flat methodA [options]
Options:
--param1
--param2
`
}, {
description: 'methodB --help',
input: 'methodB --help',
output: `
Usage:
$ object-flat methodB [options]
Options:
--param1
--param2
`
}, {
description: 'methodA --param2="Z" --param1="K"',
input: 'methodA --param2="Z" --param1="K"',
output: `K-Z`
}, {
description: 'methodB --param1=3 --param2=2',
input: 'methodB --param1=3 --param2=2',
output: `1`
}];
module.exports = tests;