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:
@@ -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'});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user