|
|
@ -25,7 +25,7 @@ module.exports.tests.query = function(test, common) { |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var expected = require('../fixture/search_linguistic_focus_bbox'); |
|
|
|
var expected = require('../fixture/search_linguistic_focus_bbox'); |
|
|
|
|
|
|
|
|
|
|
|
t.deepEqual(compiled, expected, 'valid search query'); |
|
|
|
t.deepEqual(compiled, expected, 'search_linguistic_focus_bbox'); |
|
|
|
t.end(); |
|
|
|
t.end(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -42,7 +42,7 @@ module.exports.tests.query = function(test, common) { |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var expected = require('../fixture/search_linguistic_bbox'); |
|
|
|
var expected = require('../fixture/search_linguistic_bbox'); |
|
|
|
|
|
|
|
|
|
|
|
t.deepEqual(compiled, expected, 'valid search query'); |
|
|
|
t.deepEqual(compiled, expected, 'search_linguistic_bbox'); |
|
|
|
t.end(); |
|
|
|
t.end(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -55,7 +55,7 @@ module.exports.tests.query = function(test, common) { |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var expected = require('../fixture/search_linguistic_only'); |
|
|
|
var expected = require('../fixture/search_linguistic_only'); |
|
|
|
|
|
|
|
|
|
|
|
t.deepEqual(compiled, expected, 'valid search query'); |
|
|
|
t.deepEqual(compiled, expected, 'search_linguistic_only'); |
|
|
|
t.end(); |
|
|
|
t.end(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -69,7 +69,7 @@ module.exports.tests.query = function(test, common) { |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var expected = require('../fixture/search_linguistic_focus'); |
|
|
|
var expected = require('../fixture/search_linguistic_focus'); |
|
|
|
|
|
|
|
|
|
|
|
t.deepEqual(compiled, expected, 'valid search query'); |
|
|
|
t.deepEqual(compiled, expected, 'search_linguistic_focus'); |
|
|
|
t.end(); |
|
|
|
t.end(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -86,7 +86,7 @@ module.exports.tests.query = function(test, common) { |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var expected = require('../fixture/search_linguistic_viewport'); |
|
|
|
var expected = require('../fixture/search_linguistic_viewport'); |
|
|
|
|
|
|
|
|
|
|
|
t.deepEqual(compiled, expected, 'valid search query'); |
|
|
|
t.deepEqual(compiled, expected, 'search_linguistic_viewport'); |
|
|
|
t.end(); |
|
|
|
t.end(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -119,7 +119,7 @@ module.exports.tests.query = function(test, common) { |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var expected = require('../fixture/search_linguistic_focus_null_island'); |
|
|
|
var expected = require('../fixture/search_linguistic_focus_null_island'); |
|
|
|
|
|
|
|
|
|
|
|
t.deepEqual(compiled, expected, 'valid search query'); |
|
|
|
t.deepEqual(compiled, expected, 'search_linguistic_focus_null_island'); |
|
|
|
t.end(); |
|
|
|
t.end(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -134,7 +134,7 @@ module.exports.tests.query = function(test, common) { |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var expected = require('../fixture/search_full_address'); |
|
|
|
var expected = require('../fixture/search_full_address'); |
|
|
|
|
|
|
|
|
|
|
|
t.deepEqual(compiled, expected, 'valid search query'); |
|
|
|
t.deepEqual(compiled, expected, 'search_full_address'); |
|
|
|
t.end(); |
|
|
|
t.end(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -149,7 +149,7 @@ module.exports.tests.query = function(test, common) { |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var expected = require('../fixture/search_partial_address'); |
|
|
|
var expected = require('../fixture/search_partial_address'); |
|
|
|
|
|
|
|
|
|
|
|
t.deepEqual(compiled, expected, 'valid search query'); |
|
|
|
t.deepEqual(compiled, expected, 'search_partial_address'); |
|
|
|
t.end(); |
|
|
|
t.end(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -164,7 +164,7 @@ module.exports.tests.query = function(test, common) { |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var compiled = JSON.parse( JSON.stringify( query ) ); |
|
|
|
var expected = require('../fixture/search_regions_address'); |
|
|
|
var expected = require('../fixture/search_regions_address'); |
|
|
|
|
|
|
|
|
|
|
|
t.deepEqual(compiled, expected, 'valid search query'); |
|
|
|
t.deepEqual(compiled, expected, 'search_regions_address'); |
|
|
|
t.end(); |
|
|
|
t.end(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|