Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tune the Seam Carving tests.
  • Loading branch information
trekhleb committed Apr 21, 2021
commit c89241a5b5f56e5f5dbecfc03ae2643e0c9517e9
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ describe('resizeImageWidth', () => {
expect(imgDataTest.width).toBe(imgAfter.width);
expect(imgDataTest.height).toBe(imgAfter.height);

const colorThreshold = 50;
const pixelsTreshold = 50;
const colorThreshold = 100;
const differentPixels = pixelsDiff(imgDataTest, imgDataAfter, colorThreshold);
expect(differentPixels).toBe(0);
});
Expand Down