mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Javascript code linting
This commit is contained in:
@@ -111,9 +111,9 @@ describe("TagListInputController", () => {
|
||||
});
|
||||
|
||||
it("highlights the new tag name in red", () => {
|
||||
expect(variant_add_tag.classList).toContain("tag-error")
|
||||
expect(variant_add_tag.classList).toContain("tag-error");
|
||||
});
|
||||
})
|
||||
});
|
||||
});
|
||||
|
||||
describe("removeTag", () => {
|
||||
@@ -144,11 +144,11 @@ describe("TagListInputController", () => {
|
||||
|
||||
it("removes error highlight", () => {
|
||||
variant_add_tag.value = "text";
|
||||
variant_add_tag.classList.add("tag-error")
|
||||
variant_add_tag.classList.add("tag-error");
|
||||
|
||||
variant_add_tag.dispatchEvent(new KeyboardEvent("keyup", { key: "a" }));
|
||||
|
||||
expect(variant_add_tag.classList).not.toContain("tag-error")
|
||||
expect(variant_add_tag.classList).not.toContain("tag-error");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user