|
|
|
@ -15,6 +15,7 @@ module.exports.tests.interface = (test, common) => {
|
|
|
|
|
|
|
|
|
|
// helper for canned views
|
|
|
|
|
const views = { |
|
|
|
|
focus_only_function: () => 'focus_only_function', |
|
|
|
|
popularity_only_function: 'popularity_only_function view', |
|
|
|
|
population_only_function: 'population_only_function 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.deepEquals(generatedQuery.body.score_functions, [ |
|
|
|
|
'focus_only_function', |
|
|
|
|
'popularity_only_function view', |
|
|
|
|
'population_only_function view' |
|
|
|
|
]); |
|
|
|
|