Merge pull request #5019 from openlayers/greenkeeper-eslint-2.4.0
Update eslint to version 2.4.0 🚀
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@
|
|||||||
"clean-css": "3.4.10",
|
"clean-css": "3.4.10",
|
||||||
"coveralls": "2.11.8",
|
"coveralls": "2.11.8",
|
||||||
"debounce": "^1.0.0",
|
"debounce": "^1.0.0",
|
||||||
"eslint": "2.3.0",
|
"eslint": "2.4.0",
|
||||||
"eslint-config-openlayers": "4.1.0",
|
"eslint-config-openlayers": "4.1.0",
|
||||||
"expect.js": "0.3.1",
|
"expect.js": "0.3.1",
|
||||||
"gaze": "^0.5.1",
|
"gaze": "^0.5.1",
|
||||||
|
|||||||
@@ -19,12 +19,12 @@ describe('ol.geom.flat.center', function() {
|
|||||||
|
|
||||||
it('calculates the centers of two squares', function() {
|
it('calculates the centers of two squares', function() {
|
||||||
var squareMultiPoly = new ol.geom.MultiPolygon([
|
var squareMultiPoly = new ol.geom.MultiPolygon([
|
||||||
[
|
[
|
||||||
[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]
|
[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
[[3, 0], [3, 1], [4, 1], [4, 0], [3, 0]]
|
[[3, 0], [3, 1], [4, 1], [4, 0], [3, 0]]
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
var got = ol.geom.flat.center.linearRingss(
|
var got = ol.geom.flat.center.linearRingss(
|
||||||
squareMultiPoly.flatCoordinates,
|
squareMultiPoly.flatCoordinates,
|
||||||
|
|||||||
Reference in New Issue
Block a user