From a42afef5a83217abcdabcec354bfacd6b5188436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 6 Mar 2017 19:20:01 +0100 Subject: [PATCH] Add assertions --- test/rendering_js.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/rendering_js.test.js b/test/rendering_js.test.js index 22c4b15..e09ea9d 100644 --- a/test/rendering_js.test.js +++ b/test/rendering_js.test.js @@ -194,6 +194,7 @@ describe('RenderingJS', function() { var shader = (new carto.RendererJS({})).render(css); var layer = shader.getLayers()[0]; var value = layer.shader['marker-width'].style({ name: 'wadus' }, { zoom: 1 }); + assert.equal(value, 14); }, ReferenceError); }); @@ -208,6 +209,7 @@ describe('RenderingJS', function() { var shader = (new carto.RendererJS({})).render(css); var layer = shader.getLayers()[0]; var value = layer.shader['marker-width'].style({ value: 10 }, { zoom: 1 }); + assert.equal(value, 14); }, Error); }); });