Test for #606: function avg(timestamp with time zone) does not exist
This commit is contained in:
parent
48a1244fa0
commit
924f009390
@ -304,6 +304,37 @@ describe('widgets', function() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('can use a datetime filtered column with no results', function(done) {
|
||||||
|
this.testClient = new TestClient(histogramsMapConfig({
|
||||||
|
updated_at: {
|
||||||
|
type: 'histogram',
|
||||||
|
options: {
|
||||||
|
column: 'updated_at'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
var params = {
|
||||||
|
own_filter: 1,
|
||||||
|
filters: {
|
||||||
|
layers: [{
|
||||||
|
updated_at: {
|
||||||
|
// this will remove all results
|
||||||
|
max: -1
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
this.testClient.getWidget('updated_at', params, function (err, res, histogram) {
|
||||||
|
assert.ok(!err, err);
|
||||||
|
assert.ok(histogram);
|
||||||
|
assert.equal(histogram.type, 'histogram');
|
||||||
|
|
||||||
|
assert.equal(histogram.bins.length, 0);
|
||||||
|
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
it('can getTile with datetime filtered column', function(done) {
|
it('can getTile with datetime filtered column', function(done) {
|
||||||
this.testClient = new TestClient(histogramsMapConfig({
|
this.testClient = new TestClient(histogramsMapConfig({
|
||||||
updated_at: {
|
updated_at: {
|
||||||
|
Loading…
Reference in New Issue
Block a user