mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-13 17:08:20 +00:00
chore: clear lint rules warns: comments, tests
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user