chore: clear lint rules warns: comments, tests

This commit is contained in:
2026-10-08 12:55:34 +05:00
parent 0e8c2478a1
commit 7361a82c18
93 changed files with 899 additions and 940 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ import {
} from "./favorites.svelte";
describe("favorites", () => {
it("toggle добавляет и убирает, isFav отражает состояние", () => {
it("toggle adds and removes, isFav reflects state", () => {
expect(isFav("flip-png")).toBe(false);
toggleFav("flip-png");
expect(isFav("flip-png")).toBe(true);
@@ -16,7 +16,7 @@ describe("favorites", () => {
expect(isFav("flip-png")).toBe(false);
});
it("favPages фильтрует, favFirst поднимает избранное", () => {
it("favPages filters, favFirst lifts favorites", () => {
toggleFav("resize-png");
const pages = [{ slug: "crop-png" }, { slug: "resize-png" }];
expect(favPages(pages)).toEqual([{ slug: "resize-png" }]);
@@ -27,7 +27,7 @@ describe("favorites", () => {
toggleFav("resize-png");
});
it("initFavorites без localStorage и с мусором не падает", () => {
it("initFavorites without localStorage and with junk does not throw", () => {
expect(() => initFavorites()).not.toThrow();
});
});