<commit_before><commit_msg>Finish off tests for the vector layer modifier<commit_after>describe('VectorLayerModifier', function() {

  describe('#modifyLayer', function() {
    var layer, layerInfo;
    beforeEach(function() {
      layer = new ol.layer.Vector();
      layerInfo = {
        minScale: 288896, 
        maxScale: 0, 
        drawingInfo: {
          renderer: {
            type: 'simple',
            symbol: {
              type: 'esriSFS',
              color: [255,0,0,255]
            }
          },
          transparency: 40
        }
      };
      ol3Esri.VectorLayerModifier.modifyLayer(layerInfo, layer, ol.proj.get('EPSG:3857'));
    });
    it('applies transparency', function() {
      expect(layer.getOpacity()).to.be(0.6);
    });
    it('applies minScale / maxScale', function() {
      expect(layer.getMinResolution()).to.be(0);
      expect(layer.getMaxResolution()).to.be(80.89104178208359);
    });
    it('sets the style on the layer', function() {
      expect(layer.getStyle().getFill().getColor()).to.eql([255,0,0,1]);
    });
  });

});
{'fraction_non_alphanumeric': 0.16048237476808905, 'fraction_numerical': 0.04359925788497217, 'mean_word_length': 2.3824451410658307, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3937563', 'n_tokens_mistral': 367, 'n_tokens_neox': 335, 'n_words': 55}