Skip to content

Commit 27991a7

Browse files
committed
Update colorDelta test
The logic changed for this test.
1 parent 5136299 commit 27991a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/__tests__/colorDelta-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ it('is medium when comparing red and blue', () => {
2222
expect(delta).toBeLessThan(0.51);
2323
});
2424

25-
it('is zero when comparing transparent and white', () => {
26-
expect(colorDelta([0, 0, 0, 0], [255, 255, 255, 255])).toEqual(0);
25+
it('is one when comparing transparent and white', () => {
26+
expect(colorDelta([0, 0, 0, 0], [255, 255, 255, 255])).toEqual(1);
2727
});
2828

2929
it('is large when comparing transparent and black', () => {

0 commit comments

Comments
 (0)