Browse Source

Move sort array into createExpectedQuery().

test/unit/query/search.js
	-The fact that it's a singleton was causing problems because at
	least one of the tests directly modifies it (this was one of the
	reasons why the base query itself was moved into
	`createExpectedQuery()`).
	-Move it into `createExpectedQuery()` as well.
search-suggest-categories
Severyn Kozak 10 years ago
parent
commit
7462e6bc80
  1. 6
      test/unit/query/search.js

6
test/unit/query/search.js

@ -16,7 +16,8 @@ module.exports.tests.interface = function(test, common) {
});
};
var sort = [
function createExpectedQuery(){
var sort = [
'_score',
{
'_script': {
@ -69,9 +70,8 @@ var sort = [
'order': 'desc'
}
}
];
];
function createExpectedQuery(){
return {
'query': {
'filtered': {

Loading…
Cancel
Save