New eslint config with no-multi-assign
This commit is contained in:
@@ -23,7 +23,8 @@ describe('ol.control.Attribution', function() {
|
||||
|
||||
beforeEach(function() {
|
||||
const target = document.createElement('div');
|
||||
target.style.width = target.style.height = '100px';
|
||||
target.style.width = '100px';
|
||||
target.style.height = '100px';
|
||||
document.body.appendChild(target);
|
||||
map = new Map({
|
||||
target: target,
|
||||
|
||||
@@ -197,7 +197,8 @@ describe('ol.Map', function() {
|
||||
let map;
|
||||
beforeEach(function() {
|
||||
const target = document.createElement('div');
|
||||
target.style.width = target.style.height = '100px';
|
||||
target.style.width = '100px';
|
||||
target.style.height = '100px';
|
||||
document.body.appendChild(target);
|
||||
map = new Map({
|
||||
target: target,
|
||||
@@ -259,7 +260,8 @@ describe('ol.Map', function() {
|
||||
let target, map, layer;
|
||||
beforeEach(function() {
|
||||
target = document.createElement('div');
|
||||
target.style.width = target.style.height = '100px';
|
||||
target.style.width = '100px';
|
||||
target.style.height = '100px';
|
||||
document.body.appendChild(target);
|
||||
layer = new VectorLayer({
|
||||
source: new VectorSource({
|
||||
@@ -360,7 +362,8 @@ describe('ol.Map', function() {
|
||||
useGeographic();
|
||||
|
||||
target = document.createElement('div');
|
||||
target.style.width = target.style.height = size + 'px';
|
||||
target.style.width = size + 'px';
|
||||
target.style.height = size + 'px';
|
||||
document.body.appendChild(target);
|
||||
|
||||
map = new Map({
|
||||
@@ -413,7 +416,8 @@ describe('ol.Map', function() {
|
||||
useGeographic();
|
||||
|
||||
target = document.createElement('div');
|
||||
target.style.width = target.style.height = size + 'px';
|
||||
target.style.width = size + 'px';
|
||||
target.style.height = size + 'px';
|
||||
document.body.appendChild(target);
|
||||
|
||||
map = new Map({
|
||||
|
||||
@@ -81,7 +81,8 @@ describe('ol.renderer.canvas.ImageLayer', function() {
|
||||
});
|
||||
|
||||
div = document.createElement('div');
|
||||
div.style.width = div.style.height = '100px';
|
||||
div.style.width = '100px';
|
||||
div.style.height = '100px';
|
||||
document.body.appendChild(div);
|
||||
map = new Map({
|
||||
target: div,
|
||||
@@ -131,7 +132,8 @@ describe('ol.renderer.canvas.ImageLayer', function() {
|
||||
});
|
||||
|
||||
div = document.createElement('div');
|
||||
div.style.width = div.style.height = '100px';
|
||||
div.style.width = '100px';
|
||||
div.style.height = '100px';
|
||||
document.body.appendChild(div);
|
||||
map = new Map({
|
||||
target: div,
|
||||
|
||||
@@ -408,7 +408,8 @@ describe('ol.source.ImageWMS', function() {
|
||||
source.loading = false;
|
||||
});
|
||||
const target = document.createElement('div');
|
||||
target.style.width = target.style.height = '100px';
|
||||
target.style.width = '100px';
|
||||
target.style.height = '100px';
|
||||
document.body.appendChild(target);
|
||||
map = new Map({
|
||||
target: target,
|
||||
|
||||
@@ -158,7 +158,8 @@ describe('ol.source.Vector', function() {
|
||||
url: 'spec/ol/source/vectorsource/single-feature.json'
|
||||
});
|
||||
const target = document.createElement('div');
|
||||
target.style.width = target.style.height = '100px';
|
||||
target.style.width = '100px';
|
||||
target.style.height = '100px';
|
||||
document.body.appendChild(target);
|
||||
map = new Map({
|
||||
target: target,
|
||||
@@ -592,7 +593,8 @@ describe('ol.source.Vector', function() {
|
||||
}
|
||||
});
|
||||
const div = document.createElement('div');
|
||||
div.style.width = div.style.height = '100px';
|
||||
div.style.width = '100px';
|
||||
div.style.height = '100px';
|
||||
document.body.appendChild(div);
|
||||
const map = new Map({
|
||||
target: div,
|
||||
|
||||
@@ -198,7 +198,8 @@ describe('ol.source.VectorTile', function() {
|
||||
});
|
||||
|
||||
target = document.createElement('div');
|
||||
target.style.width = target.style.height = '100px';
|
||||
target.style.width = '100px';
|
||||
target.style.height = '100px';
|
||||
document.body.appendChild(target);
|
||||
|
||||
map = new Map({
|
||||
|
||||
@@ -206,7 +206,8 @@ describe('ol.source.XYZ', function() {
|
||||
}
|
||||
});
|
||||
const target = document.createElement('div');
|
||||
target.style.width = target.style.height = '100px';
|
||||
target.style.width = '100px';
|
||||
target.style.height = '100px';
|
||||
document.body.appendChild(target);
|
||||
map = new Map({
|
||||
target: target,
|
||||
|
||||
Reference in New Issue
Block a user