Skip to content

Commit 2852fa6

Browse files
authored
Use modern jsonlint fork (#1018)
1 parent 87cd79e commit 2852fa6

File tree

4 files changed

+158
-154
lines changed

4 files changed

+158
-154
lines changed

cypress/e2e/layers.cy.ts

+29
Original file line numberDiff line numberDiff line change
@@ -494,4 +494,33 @@ describe("layers", () => {
494494
).shouldBeVisible();
495495
});
496496
});
497+
498+
499+
describe("layereditor jsonlint should error", ()=>{
500+
501+
it("add", () => {
502+
const id = when.modal.fillLayers({
503+
type: "circle",
504+
layer: "example",
505+
});
506+
507+
then(get.styleFromLocalStorage()).shouldDeepNestedInclude({
508+
layers: [
509+
{
510+
id: id,
511+
type: "circle",
512+
source: "example",
513+
},
514+
],
515+
});
516+
517+
const sourceText = get.elementByText('"source"');
518+
519+
sourceText.click();
520+
sourceText.type("\"");
521+
522+
const error = get.element('.CodeMirror-lint-marker-error');
523+
error.should('exist');
524+
});
525+
});
497526
});

0 commit comments

Comments
 (0)