Fix undefined context error in test, it raised after forcing strict mode
This commit is contained in:
parent
e2d27db828
commit
89d10210be
@ -944,8 +944,8 @@ describe('histogram-dataview for date column type', function() {
|
|||||||
this.testClient.getDataview('datetime_histogram_tz', {}, function (err, dataview) {
|
this.testClient.getDataview('datetime_histogram_tz', {}, function (err, dataview) {
|
||||||
assert.ok(!err, err);
|
assert.ok(!err, err);
|
||||||
|
|
||||||
this.testClient = new TestClient(mapConfig, 1234);
|
const _testClient = new TestClient(mapConfig, 1234);
|
||||||
this.testClient.getDataview('datetime_histogram_tz', params, function (err, filteredDataview) {
|
_testClient.getDataview('datetime_histogram_tz', params, function (err, filteredDataview) {
|
||||||
assert.ok(!err, err);
|
assert.ok(!err, err);
|
||||||
|
|
||||||
assert.deepEqual(dataview, filteredDataview);
|
assert.deepEqual(dataview, filteredDataview);
|
||||||
|
Loading…
Reference in New Issue
Block a user