diff --git a/src/aggregations/bucket-aggregations/range-aggregation-base.js b/src/aggregations/bucket-aggregations/range-aggregation-base.js index 39b40925..a3dc8899 100644 --- a/src/aggregations/bucket-aggregations/range-aggregation-base.js +++ b/src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -61,9 +61,7 @@ class RangeAggregationBase extends BucketAggregationBase { checkType(range, Object); if (!this._rangeRequiredKeys.some(hasOwnProp, range)) { throw new Error( - `Invalid Range! Range must have at least one of ${ - this._rangeRequiredKeys - }` + `Invalid Range! Range must have at least one of ${this._rangeRequiredKeys}` ); } diff --git a/test/core-test/geo-shape.test.js b/test/core-test/geo-shape.test.js index 4b29b746..5cc963e8 100644 --- a/test/core-test/geo-shape.test.js +++ b/test/core-test/geo-shape.test.js @@ -22,12 +22,18 @@ test('constructor sets arguments', t => { ]).toJSON(); const expected = { type: 'multipoint', - coordinates: [[102.0, 2.0], [103.0, 2.0]] + coordinates: [ + [102.0, 2.0], + [103.0, 2.0] + ] }; t.deepEqual(value, expected); value = new GeoShape('multipoint') - .coordinates([[102.0, 2.0], [103.0, 2.0]]) + .coordinates([ + [102.0, 2.0], + [103.0, 2.0] + ]) .toJSON(); t.deepEqual(value, expected); }); @@ -35,11 +41,17 @@ test('constructor sets arguments', t => { test('sets type and coordinates', t => { const value = new GeoShape() .type('envelope') - .coordinates([[-45.0, 45.0], [45.0, -45.0]]) + .coordinates([ + [-45.0, 45.0], + [45.0, -45.0] + ]) .toJSON(); const expected = { type: 'envelope', - coordinates: [[-45.0, 45.0], [45.0, -45.0]] + coordinates: [ + [-45.0, 45.0], + [45.0, -45.0] + ] }; t.deepEqual(value, expected); }); diff --git a/test/queries-test/geo-shape-query.test.js b/test/queries-test/geo-shape-query.test.js index dc4e5e64..e5ea27cb 100644 --- a/test/queries-test/geo-shape-query.test.js +++ b/test/queries-test/geo-shape-query.test.js @@ -30,9 +30,10 @@ test(validatedCorrectly, getInstance, 'relation', [ 'INTERSECTS' ]); test(setsFieldOption, 'shape', { - param: new GeoShape() - .type('envelope') - .coordinates([[13.0, 53.0], [14.0, 52.0]]) + param: new GeoShape().type('envelope').coordinates([ + [13.0, 53.0], + [14.0, 52.0] + ]) }); test(setsFieldOption, 'indexedShape', { param: new IndexedShape() diff --git a/test/queries-test/more-like-this-query.test.js b/test/queries-test/more-like-this-query.test.js index 68d52b57..1a09e9e2 100644 --- a/test/queries-test/more-like-this-query.test.js +++ b/test/queries-test/more-like-this-query.test.js @@ -89,7 +89,10 @@ test('sets unlike(arr) option', setsOption, 'unlike', { test(setsOption, 'likeText', { param: 'my text' }); test(setsOption, 'ids', { param: ['1', '2'], spread: false }); test(setsOption, 'docs', { - param: [{ _type: 'type', _id: '1' }, { _type: 'type', _id: '2' }], + param: [ + { _type: 'type', _id: '1' }, + { _type: 'type', _id: '2' } + ], spread: false }); test(setsOption, 'maxQueryTerms', { param: 12 });