Fix undefined context error in test, it raised after forcing strict mode

This commit is contained in:
Daniel García Aubert 2018-10-24 11:58:20 +02:00
parent e2d27db828
commit 89d10210be

View File

@ -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);