From 89d10210be2c92bac77dcd1cf82b4be6a2e68f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Wed, 24 Oct 2018 11:58:20 +0200 Subject: [PATCH] Fix undefined context error in test, it raised after forcing strict mode --- test/acceptance/dataviews/histogram.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/acceptance/dataviews/histogram.js b/test/acceptance/dataviews/histogram.js index 5153fbe2..aa89d53e 100644 --- a/test/acceptance/dataviews/histogram.js +++ b/test/acceptance/dataviews/histogram.js @@ -944,8 +944,8 @@ describe('histogram-dataview for date column type', function() { this.testClient.getDataview('datetime_histogram_tz', {}, function (err, dataview) { assert.ok(!err, err); - this.testClient = new TestClient(mapConfig, 1234); - this.testClient.getDataview('datetime_histogram_tz', params, function (err, filteredDataview) { + const _testClient = new TestClient(mapConfig, 1234); + _testClient.getDataview('datetime_histogram_tz', params, function (err, filteredDataview) { assert.ok(!err, err); assert.deepEqual(dataview, filteredDataview);