Consistent spacing between keys and values in object literal

Related to https://github.com/openlayers/eslint-config-openlayers/pull/9
This commit is contained in:
Frederic Junod
2016-12-14 12:10:16 +01:00
parent 88c417587c
commit 1478cadb18
8 changed files with 37 additions and 37 deletions

View File

@@ -97,7 +97,7 @@ describe('ol.source.ImageArcGISRest', function() {
options.params.TEST = 'value';
var source = new ol.source.ImageArcGISRest(options);
source.updateParams({'TEST':'newValue'});
source.updateParams({'TEST': 'newValue'});
var image = source.getImage([3, 2, -7, 1], resolution, pixelRatio, proj3857);
var uri = new URL(image.src_);
@@ -122,22 +122,22 @@ describe('ol.source.ImageArcGISRest', function() {
options.params.TEST = 'value';
var source = new ol.source.ImageArcGISRest(options);
source.updateParams({'TEST2':'newValue'});
source.updateParams({'TEST2': 'newValue'});
var setParams = source.getParams();
expect(setParams).to.eql({TEST:'value', TEST2:'newValue'});
expect(setParams).to.eql({TEST: 'value', TEST2: 'newValue'});
});
it('verify on update a param', function() {
options.params.TEST = 'value';
var source = new ol.source.ImageArcGISRest(options);
source.updateParams({'TEST':'newValue'});
source.updateParams({'TEST': 'newValue'});
var setParams = source.getParams();
expect(setParams).to.eql({TEST:'newValue'});
expect(setParams).to.eql({TEST: 'newValue'});
});
});