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:
@@ -3,12 +3,12 @@ import { vignette } from "./effects";
|
||||
import { makeImage } from "./test-helpers";
|
||||
|
||||
describe("vignette", () => {
|
||||
it("сила 0 — идентичное преобразование", () => {
|
||||
it("strength 0 - identity transform", () => {
|
||||
const img = makeImage(3, 3, new Array(9).fill([200, 100, 50, 255]));
|
||||
expect([...vignette(img, 0).data]).toEqual([...img.data]);
|
||||
});
|
||||
|
||||
it("углы темнее центра", () => {
|
||||
it("corners darker than center", () => {
|
||||
const img = makeImage(7, 7, new Array(49).fill([200, 200, 200, 255]));
|
||||
const out = vignette(img, 80);
|
||||
const centerR = out.data[(3 * 7 + 3) * 4];
|
||||
|
||||
Reference in New Issue
Block a user