Skip to content

Commit

Permalink
test covering serverless#5493
Browse files Browse the repository at this point in the history
  • Loading branch information
dschep committed Nov 15, 2018
1 parent 237d029 commit 11a6688
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/classes/CLI.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,15 @@ describe('CLI', () => {

expect(inputToBeProcessed).to.deep.equal(expectedObject);
});

it('should be able to parse --verbose --stage foobar', () => {
cli = new CLI(serverless, ['deploy', '--verbose', '--stage', 'foobar']);
const inputToBeProcessed = cli.processInput();

const expectedObject = { commands: ['deploy'], options: { verbose: true, stage: 'foobar' } };

expect(inputToBeProcessed).to.deep.equal(expectedObject);
});
});

describe('Integration tests', function () {
Expand Down

0 comments on commit 11a6688

Please sign in to comment.