Use constructor for test validation

This commit is contained in:
Daniel García Aubert 2017-03-06 12:04:29 +01:00
parent 8c75b4b0c6
commit 410ecfd3c7

View File

@ -194,7 +194,7 @@ describe('RenderingJS', function() {
var shader = (new carto.RendererJS({})).render(css); var shader = (new carto.RendererJS({})).render(css);
var layer = shader.getLayers()[0]; var layer = shader.getLayers()[0];
var value = layer.shader['marker-width'].style({ name: 'wadus' }, { zoom: 1 }); var value = layer.shader['marker-width'].style({ name: 'wadus' }, { zoom: 1 });
}); }, ReferenceError);
}); });
it("`=~` operator should support numbers", function(){ it("`=~` operator should support numbers", function(){