fix prettier linting problems

This commit is contained in:
Simon Seyock
2021-03-09 09:08:27 +01:00
parent 610896ef95
commit 2b57584180
7 changed files with 226 additions and 209 deletions

View File

@@ -885,11 +885,12 @@ describe('ol.interaction.Modify', function () {
let firstSegmentData;
firstSegmentData = modify.rBush_.forEachInExtent([0, 0, 5, 5], function (
node
) {
return node;
});
firstSegmentData = modify.rBush_.forEachInExtent(
[0, 0, 5, 5],
function (node) {
return node;
}
);
expect(firstSegmentData.segment[0]).to.eql([10, 10]);
expect(firstSegmentData.segment[1]).to.eql([10, 10]);
@@ -898,11 +899,12 @@ describe('ol.interaction.Modify', function () {
center[1] = 1;
feature.getGeometry().setCenter(center);
firstSegmentData = modify.rBush_.forEachInExtent([0, 0, 5, 5], function (
node
) {
return node;
});
firstSegmentData = modify.rBush_.forEachInExtent(
[0, 0, 5, 5],
function (node) {
return node;
}
);
expect(firstSegmentData.segment[0]).to.eql([1, 1]);
expect(firstSegmentData.segment[1]).to.eql([1, 1]);
@@ -924,11 +926,12 @@ describe('ol.interaction.Modify', function () {
let firstSegmentData;
firstSegmentData = modify.rBush_.forEachInExtent([0, 0, 5, 5], function (
node
) {
return node;
});
firstSegmentData = modify.rBush_.forEachInExtent(
[0, 0, 5, 5],
function (node) {
return node;
}
);
expect(firstSegmentData.segment[0]).to.eql([0, 0]);
expect(firstSegmentData.segment[1]).to.eql([10, 20]);
@@ -938,11 +941,12 @@ describe('ol.interaction.Modify', function () {
firstVertex[1] = 1;
feature.getGeometry().setCoordinates(coordinates);
firstSegmentData = modify.rBush_.forEachInExtent([0, 0, 5, 5], function (
node
) {
return node;
});
firstSegmentData = modify.rBush_.forEachInExtent(
[0, 0, 5, 5],
function (node) {
return node;
}
);
expect(firstSegmentData.segment[0]).to.eql([1, 1]);
expect(firstSegmentData.segment[1]).to.eql([10, 20]);