|
|
@ -251,7 +251,7 @@ module.exports.tests.granularity_bands = (test, common) => { |
|
|
|
|
|
|
|
|
|
|
|
const generatedQuery = generateQuery(clean, res); |
|
|
|
const generatedQuery = generateQuery(clean, res); |
|
|
|
|
|
|
|
|
|
|
|
t.deepEquals(JSON.parse(generatedQuery.body.vs.var('input:layers')), { |
|
|
|
t.deepEquals(generatedQuery.body.vs.var('input:layers').$, { |
|
|
|
neighbourhood: [1, 11], |
|
|
|
neighbourhood: [1, 11], |
|
|
|
borough: [2, 12], |
|
|
|
borough: [2, 12], |
|
|
|
locality: [3, 13], |
|
|
|
locality: [3, 13], |
|
|
@ -296,7 +296,7 @@ module.exports.tests.granularity_bands = (test, common) => { |
|
|
|
|
|
|
|
|
|
|
|
const generatedQuery = generateQuery(clean, res); |
|
|
|
const generatedQuery = generateQuery(clean, res); |
|
|
|
|
|
|
|
|
|
|
|
t.deepEquals(JSON.parse(generatedQuery.body.vs.var('input:layers')), { |
|
|
|
t.deepEquals(generatedQuery.body.vs.var('input:layers').$, { |
|
|
|
neighbourhood: [1], |
|
|
|
neighbourhood: [1], |
|
|
|
borough: [], |
|
|
|
borough: [], |
|
|
|
locality: [], |
|
|
|
locality: [], |
|
|
@ -354,7 +354,7 @@ module.exports.tests.granularity_bands = (test, common) => { |
|
|
|
|
|
|
|
|
|
|
|
const generatedQuery = generateQuery(clean, res); |
|
|
|
const generatedQuery = generateQuery(clean, res); |
|
|
|
|
|
|
|
|
|
|
|
t.deepEquals(JSON.parse(generatedQuery.body.vs.var('input:layers')), { |
|
|
|
t.deepEquals(generatedQuery.body.vs.var('input:layers').$, { |
|
|
|
county: [1, 4], |
|
|
|
county: [1, 4], |
|
|
|
macrocounty: [2, 5] |
|
|
|
macrocounty: [2, 5] |
|
|
|
}); |
|
|
|
}); |
|
|
|