Skip to content

Commit 49518cf

Browse files
committed
more tests
1 parent 80ce6a0 commit 49518cf

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

packages/@aws-cdk/user-input-gen/test/user-input-gen.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ describe('render', () => {
3333
commands: {
3434
deploy: {
3535
description: 'Deploy a stack',
36+
aliases: ['ship-it'],
3637
options: {
3738
all: {
3839
type: 'boolean',
3940
desc: 'Deploy all stacks',
41+
alias: 'A',
4042
default: false,
4143
},
4244
},
@@ -70,6 +72,8 @@ describe('render', () => {
7072
7173
/**
7274
* Deploy a stack
75+
*
76+
* aliases: ship-it
7377
*/
7478
readonly deploy?: DeployOptions;
7579
}
@@ -119,12 +123,16 @@ describe('render', () => {
119123
/**
120124
* Deploy a stack
121125
*
126+
* aliases: ship-it
127+
*
122128
* @struct
123129
*/
124130
export interface DeployOptions {
125131
/**
126132
* Deploy all stacks
127133
*
134+
* aliases: A
135+
*
128136
* @default - false
129137
*/
130138
readonly all?: boolean;

packages/@aws-cdk/user-input-gen/test/yargs-gen.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ describe('render', () => {
7878
commands: {
7979
test: {
8080
description: 'the action under test',
81+
aliases: ['spec'],
8182
options: {
8283
one: {
8384
type: 'boolean',
@@ -104,7 +105,7 @@ describe('render', () => {
104105
return yargs
105106
.env('CDK')
106107
.usage('Usage: cdk -a <cdk-app> COMMAND')
107-
.command('test', 'the action under test', (yargs: Argv) =>
108+
.command(['test', 'spec'], 'the action under test', (yargs: Argv) =>
108109
yargs
109110
.option('one', {
110111
default: undefined,

0 commit comments

Comments
 (0)