Fix tests.

Now we don't run the parser so there is no errors, we can't look for errors.
This commit is contained in:
Francisco López 2017-04-17 16:00:07 +02:00
parent 9b5fb6a408
commit 59c0208caa
2 changed files with 8 additions and 3 deletions

View File

@ -0,0 +1,8 @@
var ref = require('./reference.json');
var carto = require('../../lib/carto/index.js');
var ccss = new carto.RendererJS({
reference: ref,
strict: true
}).render("#layer { polygon-fill: #abcdef; }");

View File

@ -124,9 +124,6 @@ describe('RendererJS Strict Mode', function() {
function rendererStrictModeOffTest(RendererJS) { function rendererStrictModeOffTest(RendererJS) {
return function () { return function () {
var shader = RendererJS.render(style); var shader = RendererJS.render(style);
assert.ok(shader.parse_env);
assert.ok(shader.parse_env.errors);
assert.ok(shader.parse_env.errors.message.match(expectedErrorMessageRegex));
assert.ok(shader.layers); assert.ok(shader.layers);
assert.equal(shader.layers.length, 2); assert.equal(shader.layers.length, 2);