Adding test for column date type in numeric histograms
This commit is contained in:
parent
d1696425fd
commit
7237fb04a8
@ -325,6 +325,15 @@ describe('histogram-dataview for date column type', function () {
|
||||
column: 'd',
|
||||
aggregation: 'minute'
|
||||
}
|
||||
},
|
||||
date_histogram_no_agg: {
|
||||
options: {
|
||||
column: 'd'
|
||||
},
|
||||
source: {
|
||||
id: 'minute-histogram-source-tz'
|
||||
},
|
||||
type: 'histogram'
|
||||
}
|
||||
},
|
||||
[
|
||||
@ -1232,6 +1241,21 @@ describe('histogram-dataview for date column type', function () {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should work with dates without aggregation', function (done) {
|
||||
var params = {
|
||||
start: 1171583400,
|
||||
end: 1171584600
|
||||
};
|
||||
this.testClient = new TestClient(mapConfig, 1234);
|
||||
this.testClient.getDataview('date_histogram_no_agg', params, function (err, dataview) {
|
||||
assert.ifError(err);
|
||||
assert.strictEqual(dataview.type, 'histogram');
|
||||
assert.strictEqual(dataview.bins.length, 6);
|
||||
assert.strictEqual(dataview.bins_count, 6);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('histogram-dataview: special float valuer', function () {
|
||||
|
Loading…
Reference in New Issue
Block a user