Merge pull request #210 from JonnyBurger/increase-tolerance-by-one

Increase tolerance of pixels by 1 in tests
This commit is contained in:
David P.
2025-11-06 09:01:40 +00:00
committed by GitHub
+2 -2
View File
@@ -148,8 +148,8 @@ test('Can encode transparent video', async () => {
// Red (within error)
expect(imageData.data[index2 + 0]).greaterThanOrEqual(253);
expect(imageData.data[index2 + 1]).lessThanOrEqual(2);
expect(imageData.data[index2 + 2]).lessThanOrEqual(2);
expect(imageData.data[index2 + 1]).lessThanOrEqual(3);
expect(imageData.data[index2 + 2]).lessThanOrEqual(3);
expect(imageData.data[index2 + 3]).toBe(255); // Opaque