[test,addendum][xs]: fixes for tests after changes in last commit b64daea1a763ba40d450d8234f7b3ac0c8f15c16.

This commit is contained in:
Rufus Pollock 2012-06-18 21:21:03 +01:00
parent b64daea1a7
commit 0148dd45b2
3 changed files with 6 additions and 4 deletions

View File

@ -41,7 +41,7 @@ test("queryNormalize", function() {
and: [
{
term: {
xyz: 'XXX'
xyz: 'xxx'
}
}
]
@ -65,7 +65,8 @@ test("queryNormalize", function() {
and: [
{
geo_distance: {
distance: '10km',
distance: 10,
unit: 'km',
'xyz': { lon: 0, lat: 0 }
}
}

View File

@ -161,7 +161,8 @@ test('Query.addFilter', function () {
query.addFilter({type: 'geo_distance', field: 'xyz'});
var exp = {
distance: '10km',
distance: 10,
unit: 'km',
point: {
lon: 0,
lat: 0

View File

@ -56,7 +56,7 @@ test('geo_distance', function () {
$editForm = view.el.find('form.js-edit');
equal($editForm.find('.filter-geo_distance').length, 1)
deepEqual(_.keys(dataset.queryState.attributes.filters[0]), ['distance',
'point', 'type', 'field']);
'unit', 'point', 'type', 'field']);
// now set filter value and apply
$editForm.find('input[name="lat"]').val(10);