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:
parent
9b5fb6a408
commit
59c0208caa
8
test/editor/editor.test.js
Normal file
8
test/editor/editor.test.js
Normal 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; }");
|
@ -124,9 +124,6 @@ describe('RendererJS Strict Mode', function() {
|
||||
function rendererStrictModeOffTest(RendererJS) {
|
||||
return function () {
|
||||
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.equal(shader.layers.length, 2);
|
||||
|
Loading…
Reference in New Issue
Block a user