mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
fix flags test to match structure change
This commit is contained in:
parent
6d76e72542
commit
a8c2d34abe
1 changed files with 2 additions and 6 deletions
|
@ -62,18 +62,14 @@ define(function (require) {
|
|||
it('should include flags', function () {
|
||||
aggConfig.params[paramName] = {
|
||||
pattern: 'testing',
|
||||
flags: {
|
||||
TEST1: true,
|
||||
TEST2: false,
|
||||
TEST3: true
|
||||
}
|
||||
flags: [ 'TEST1', 'TEST2', 'TEST_RED', 'TEST_BLUE' ]
|
||||
};
|
||||
|
||||
aggParam.write(aggConfig, output);
|
||||
expect(output.params).to.have.property(paramName);
|
||||
expect(output.params[paramName]).to.have.property('flags');
|
||||
expect(typeof output.params[paramName].flags).to.be('string');
|
||||
expect(output.params[paramName].flags).to.be('TEST1|TEST3');
|
||||
expect(output.params[paramName].flags).to.be('TEST1|TEST2|TEST_RED|TEST_BLUE');
|
||||
});
|
||||
});
|
||||
}];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue