mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-01 21:03:46 +02:00
Increase tolerance of pixels by 1 in tests
This commit is contained in:
@@ -148,8 +148,8 @@ test('Can encode transparent video', async () => {
|
|||||||
|
|
||||||
// Red (within error)
|
// Red (within error)
|
||||||
expect(imageData.data[index2 + 0]).greaterThanOrEqual(253);
|
expect(imageData.data[index2 + 0]).greaterThanOrEqual(253);
|
||||||
expect(imageData.data[index2 + 1]).lessThanOrEqual(2);
|
expect(imageData.data[index2 + 1]).lessThanOrEqual(3);
|
||||||
expect(imageData.data[index2 + 2]).lessThanOrEqual(2);
|
expect(imageData.data[index2 + 2]).lessThanOrEqual(3);
|
||||||
|
|
||||||
expect(imageData.data[index2 + 3]).toBe(255); // Opaque
|
expect(imageData.data[index2 + 3]).toBe(255); // Opaque
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user