|
|
@ -15,6 +15,7 @@ module.exports.tests.interface = (test, common) => { |
|
|
|
|
|
|
|
|
|
|
|
// helper for canned views
|
|
|
|
// helper for canned views
|
|
|
|
const views = { |
|
|
|
const views = { |
|
|
|
|
|
|
|
focus_only_function: () => 'focus_only_function', |
|
|
|
popularity_only_function: 'popularity_only_function view', |
|
|
|
popularity_only_function: 'popularity_only_function view', |
|
|
|
population_only_function: 'population_only_function view', |
|
|
|
population_only_function: 'population_only_function view', |
|
|
|
boundary_country: 'boundary_country view', |
|
|
|
boundary_country: 'boundary_country view', |
|
|
@ -58,6 +59,7 @@ module.exports.tests.base_query = (test, common) => { |
|
|
|
t.equals(generatedQuery.body.vs.var('size').toString(), 20); |
|
|
|
t.equals(generatedQuery.body.vs.var('size').toString(), 20); |
|
|
|
|
|
|
|
|
|
|
|
t.deepEquals(generatedQuery.body.score_functions, [ |
|
|
|
t.deepEquals(generatedQuery.body.score_functions, [ |
|
|
|
|
|
|
|
'focus_only_function', |
|
|
|
'popularity_only_function view', |
|
|
|
'popularity_only_function view', |
|
|
|
'population_only_function view' |
|
|
|
'population_only_function view' |
|
|
|
]); |
|
|
|
]); |
|
|
|