From ea880ccf7badd8679a09a25e715db85cf27030a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20L=C3=B3pez?= Date: Fri, 19 May 2017 12:24:50 +0200 Subject: [PATCH] Check throw --- test/rendering_js-strict.test.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/rendering_js-strict.test.js b/test/rendering_js-strict.test.js index 9628e9b..07df548 100644 --- a/test/rendering_js-strict.test.js +++ b/test/rendering_js-strict.test.js @@ -134,9 +134,14 @@ describe('RendererJS Strict Mode', function() { new carto.RendererJS({reference: reference, mapnik_version: '1.0.0' }) )); - it('should pass if a feature is not supported but strict is turned off', rendererStrictModeOffTest( - new carto.RendererJS({reference: reference, mapnik_version: '1.0.0', strict: false }) - )); + it('should pass if a feature is not supported but strict is turned off', function () { + assert.doesNotThrow( + function () { + var RendererJS = new carto.RendererJS({reference: reference, mapnik_version: '1.0.0', strict: false }); + var shader = RendererJS.render(style); + } + ); + }); it('should pass if a feature is supported and strict is turned on', function () { var RendererJS = new carto.RendererJS({reference: reference, mapnik_version: '1.0.0', strict: true });