Skip to content

Commit

Permalink
Use modern jsonlint fork (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum authored Jan 22, 2025
1 parent 87cd79e commit 2852fa6
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 154 deletions.
29 changes: 29 additions & 0 deletions cypress/e2e/layers.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,4 +494,33 @@ describe("layers", () => {
).shouldBeVisible();
});
});


describe("layereditor jsonlint should error", ()=>{

it("add", () => {
const id = when.modal.fillLayers({
type: "circle",
layer: "example",
});

then(get.styleFromLocalStorage()).shouldDeepNestedInclude({
layers: [
{
id: id,
type: "circle",
source: "example",
},
],
});

const sourceText = get.elementByText('"source"');

sourceText.click();
sourceText.type("\"");

const error = get.element('.CodeMirror-lint-marker-error');
error.should('exist');
});
});
});
Loading

0 comments on commit 2852fa6

Please sign in to comment.