Skip to content

Commit

Permalink
Update colorDelta test
Browse files Browse the repository at this point in the history
The logic changed for this test.
  • Loading branch information
trotzig committed Jun 2, 2021
1 parent 5136299 commit 27991a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/colorDelta-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ it('is medium when comparing red and blue', () => {
expect(delta).toBeLessThan(0.51);
});

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

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

0 comments on commit 27991a7

Please sign in to comment.