Skip to content

Commit

Permalink
Adding test for list option
Browse files Browse the repository at this point in the history
Fixes #5920
  • Loading branch information
ycombinator authored and epixa committed Jan 16, 2016
1 parent 208d374 commit a64f2cb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/cli/plugin/__tests__/setting_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,21 @@ describe('kibana cli', function () {

});

describe('list option', function () {

it('should set settings.action property to "list"', function () {
delete options.install;
delete options.remove;
options.list = true;
parser = settingParser(options);

var settings = parser.parse();

expect(settings).to.have.property('action', 'list');
});

});

});

});
Expand Down

0 comments on commit a64f2cb

Please sign in to comment.