Initial commit
This commit is contained in:
5
node_modules/magicli/tests/test-modules/function-simple-concat/bin/cli.js
generated
vendored
Normal file
5
node_modules/magicli/tests/test-modules/function-simple-concat/bin/cli.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
'use strict';
|
||||
|
||||
require('../../../../')();
|
||||
3
node_modules/magicli/tests/test-modules/function-simple-concat/lib/index.js
generated
vendored
Normal file
3
node_modules/magicli/tests/test-modules/function-simple-concat/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
`use strict`;
|
||||
|
||||
module.exports = (p1, p2) => `${p1} ${p2}`;
|
||||
8
node_modules/magicli/tests/test-modules/function-simple-concat/package.json
generated
vendored
Normal file
8
node_modules/magicli/tests/test-modules/function-simple-concat/package.json
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "function-simple-concat",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"description": "Test function-simple-concat",
|
||||
"main": "lib/index.js",
|
||||
"bin": "bin/cli.js"
|
||||
}
|
||||
30
node_modules/magicli/tests/test-modules/function-simple-concat/specs.js
generated
vendored
Normal file
30
node_modules/magicli/tests/test-modules/function-simple-concat/specs.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
'use strict';
|
||||
|
||||
const tests = [{
|
||||
description: 'Version --version',
|
||||
input: '--version',
|
||||
output: `1.0.0`
|
||||
}, {
|
||||
description: 'Help --help',
|
||||
input: '--help',
|
||||
output: `
|
||||
[4;1mDescription:[0m
|
||||
|
||||
Test function-simple-concat
|
||||
|
||||
[4;1mUsage:[0m
|
||||
|
||||
$ function-simple-concat [options]
|
||||
|
||||
[4;1mOptions:[0m
|
||||
|
||||
[1m--p1[0m
|
||||
[1m--p2[0m
|
||||
`
|
||||
}, {
|
||||
description: '--p1=P1 --p2=P2',
|
||||
input: '--p1=P1 --p2=2',
|
||||
output: 'P1 2'
|
||||
}];
|
||||
|
||||
module.exports = tests;
|
||||
Reference in New Issue
Block a user