Use modern jsonlint fork (#1018)

This commit is contained in:
Birk Skyum
2025-01-22 11:38:26 +01:00
committed by GitHub
parent 87cd79e86f
commit 2852fa62ff
4 changed files with 159 additions and 155 deletions

View File

@@ -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');
});
});
});