Add assertions

This commit is contained in:
Daniel García Aubert 2017-03-06 19:20:01 +01:00
parent 410ecfd3c7
commit a42afef5a8

View File

@ -194,6 +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 });
assert.equal(value, 14);
}, ReferenceError); }, ReferenceError);
}); });
@ -208,6 +209,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({ value: 10 }, { zoom: 1 }); var value = layer.shader['marker-width'].style({ value: 10 }, { zoom: 1 });
assert.equal(value, 14);
}, Error); }, Error);
}); });
}); });