Remove unused vars
This commit is contained in:
parent
3bc3d19f40
commit
8fbe8f9f2a
@ -59,14 +59,13 @@ describe('analyses controller', function () {
|
|||||||
assert.ok(result);
|
assert.ok(result);
|
||||||
|
|
||||||
let didRunJsonCallback = false;
|
let didRunJsonCallback = false;
|
||||||
// jshint ignore:start
|
/* eslint-disable no-unused-vars, no-eval */
|
||||||
function jsonp_test (body) {
|
function jsonp_test (body) {
|
||||||
assert.ok(Array.isArray(body.catalog));
|
assert.ok(Array.isArray(body.catalog));
|
||||||
didRunJsonCallback = true;
|
didRunJsonCallback = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
eval(result);
|
eval(result);
|
||||||
// jshint ignore:end
|
/* eslint-enable */
|
||||||
|
|
||||||
assert.ok(didRunJsonCallback);
|
assert.ok(didRunJsonCallback);
|
||||||
|
|
||||||
|
@ -48,12 +48,6 @@ describe('CartoCSS wrap', function () {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
var keysToDelete;
|
|
||||||
|
|
||||||
beforeEach(function () {
|
|
||||||
keysToDelete = {};
|
|
||||||
});
|
|
||||||
|
|
||||||
afterEach(function (done) {
|
afterEach(function (done) {
|
||||||
if (this.testClient) {
|
if (this.testClient) {
|
||||||
this.testClient.drain(done);
|
this.testClient.drain(done);
|
||||||
|
@ -405,7 +405,7 @@ describe('multilayer', function () {
|
|||||||
assert.strictEqual(res.statusCode, 200, res.body);
|
assert.strictEqual(res.statusCode, 200, res.body);
|
||||||
|
|
||||||
var didRunJsonCallback = false;
|
var didRunJsonCallback = false;
|
||||||
// jshint ignore:start
|
/* eslint-disable no-unused-vars, no-eval */
|
||||||
function jsonp_test (body) {
|
function jsonp_test (body) {
|
||||||
assert.ok(body.layergroupid);
|
assert.ok(body.layergroupid);
|
||||||
expected_token = LayergroupToken.parse(body.layergroupid).token;
|
expected_token = LayergroupToken.parse(body.layergroupid).token;
|
||||||
@ -417,7 +417,7 @@ describe('multilayer', function () {
|
|||||||
didRunJsonCallback = true;
|
didRunJsonCallback = true;
|
||||||
}
|
}
|
||||||
eval(res.body);
|
eval(res.body);
|
||||||
// jshint ignore:end
|
/* eslint-enable */
|
||||||
assert.ok(didRunJsonCallback);
|
assert.ok(didRunJsonCallback);
|
||||||
|
|
||||||
// TODO: check caching headers !
|
// TODO: check caching headers !
|
||||||
|
@ -72,13 +72,13 @@ describe('server', function () {
|
|||||||
assert.deepStrictEqual(res.headers['content-type'], 'text/javascript; charset=utf-8');
|
assert.deepStrictEqual(res.headers['content-type'], 'text/javascript; charset=utf-8');
|
||||||
var didRunJsonCallback = false;
|
var didRunJsonCallback = false;
|
||||||
var response = {};
|
var response = {};
|
||||||
// jshint ignore:start
|
/* eslint-disable no-unused-vars, no-eval */
|
||||||
function jsonp_test (body) {
|
function jsonp_test (body) {
|
||||||
response = body;
|
response = body;
|
||||||
didRunJsonCallback = true;
|
didRunJsonCallback = true;
|
||||||
}
|
}
|
||||||
eval(res.body);
|
eval(res.body);
|
||||||
// jshint ignore:end
|
/* eslint-enable */
|
||||||
assert.ok(didRunJsonCallback);
|
assert.ok(didRunJsonCallback);
|
||||||
assert.utfgridEqualsFile(response, './test/fixtures/test_table_13_4011_3088.grid.json', 2, done);
|
assert.utfgridEqualsFile(response, './test/fixtures/test_table_13_4011_3088.grid.json', 2, done);
|
||||||
});
|
});
|
||||||
|
@ -1382,12 +1382,13 @@ describe('template_api', function () {
|
|||||||
].join(' ');
|
].join(' ');
|
||||||
helper.checkSurrogateKey(res, expectedSurrogateKey);
|
helper.checkSurrogateKey(res, expectedSurrogateKey);
|
||||||
|
|
||||||
// jshint ignore:start
|
/* eslint-disable no-unused-vars, no-eval */
|
||||||
function json_test (body) {
|
function json_test (body) {
|
||||||
keysToDelete['map_cfg|' + LayergroupToken.parse(body.layergroupid).token] = 0;
|
keysToDelete['map_cfg|' + LayergroupToken.parse(body.layergroupid).token] = 0;
|
||||||
}
|
}
|
||||||
eval(res.body);
|
eval(res.body);
|
||||||
// jshint ignore:end
|
/* eslint-enable */
|
||||||
|
|
||||||
keysToDelete['map_tpl|localhost'] = 0;
|
keysToDelete['map_tpl|localhost'] = 0;
|
||||||
keysToDelete['user:localhost:mapviews:global'] = 5;
|
keysToDelete['user:localhost:mapviews:global'] = 5;
|
||||||
|
|
||||||
@ -1467,12 +1468,13 @@ describe('template_api', function () {
|
|||||||
].join(' ');
|
].join(' ');
|
||||||
helper.checkSurrogateKey(res, expectedSurrogateKey);
|
helper.checkSurrogateKey(res, expectedSurrogateKey);
|
||||||
|
|
||||||
// jshint ignore:start
|
/* eslint-disable no-unused-vars, no-eval */
|
||||||
function json_test (body) {
|
function json_test (body) {
|
||||||
keysToDelete['map_cfg|' + LayergroupToken.parse(body.layergroupid).token] = 0;
|
keysToDelete['map_cfg|' + LayergroupToken.parse(body.layergroupid).token] = 0;
|
||||||
}
|
}
|
||||||
eval(res.body);
|
eval(res.body);
|
||||||
// jshint ignore:end
|
/* eslint-enable */
|
||||||
|
|
||||||
keysToDelete['map_tpl|localhost'] = 0;
|
keysToDelete['map_tpl|localhost'] = 0;
|
||||||
keysToDelete['user:localhost:mapviews:global'] = 5;
|
keysToDelete['user:localhost:mapviews:global'] = 5;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user