mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
complete coverage of raw_json param type
This commit is contained in:
parent
a6594cbca8
commit
abeede1891
1 changed files with 8 additions and 0 deletions
|
@ -39,6 +39,14 @@ define(function (require) {
|
|||
});
|
||||
|
||||
describe('write', function () {
|
||||
it('should do nothing when param is not defined', function () {
|
||||
initAggParam();
|
||||
expect(aggConfig.params).not.to.have.property(paramName);
|
||||
|
||||
aggParam.write(aggConfig, output);
|
||||
expect(output).not.to.have.property(paramName);
|
||||
});
|
||||
|
||||
it('should not append param when invalid JSON', function () {
|
||||
initAggParam();
|
||||
aggConfig.params[paramName] = 'i am not json';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue