mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Fix tests for min_doc_count change
This commit is contained in:
parent
5eb43cf70b
commit
fe60886cdd
1 changed files with 4 additions and 4 deletions
|
@ -67,15 +67,15 @@ describe('Histogram Agg', function () {
|
|||
expect(output.params).to.have.property('min_doc_count', 0);
|
||||
});
|
||||
|
||||
it('writes nothing for false values', function () {
|
||||
it('writes 1 for falsey values', function () {
|
||||
let output = paramWriter.write({ min_doc_count: '' });
|
||||
expect(output.params).to.not.have.property('min_doc_count');
|
||||
expect(output.params).to.have.property('min_doc_count', 1);
|
||||
|
||||
output = paramWriter.write({ min_doc_count: null });
|
||||
expect(output.params).to.not.have.property('min_doc_count');
|
||||
expect(output.params).to.have.property('min_doc_count', 1);
|
||||
|
||||
output = paramWriter.write({ min_doc_count: undefined });
|
||||
expect(output.params).to.not.have.property('min_doc_count');
|
||||
expect(output.params).to.have.property('min_doc_count', 1);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue