Skip to content

Commit 11a6688

Browse files
committed
test covering serverless#5493
1 parent 237d029 commit 11a6688

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/classes/CLI.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,15 @@ describe('CLI', () => {
402402

403403
expect(inputToBeProcessed).to.deep.equal(expectedObject);
404404
});
405+
406+
it('should be able to parse --verbose --stage foobar', () => {
407+
cli = new CLI(serverless, ['deploy', '--verbose', '--stage', 'foobar']);
408+
const inputToBeProcessed = cli.processInput();
409+
410+
const expectedObject = { commands: ['deploy'], options: { verbose: true, stage: 'foobar' } };
411+
412+
expect(inputToBeProcessed).to.deep.equal(expectedObject);
413+
});
405414
});
406415

407416
describe('Integration tests', function () {

0 commit comments

Comments
 (0)