Skip to content

Commit

Permalink
Update color.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
asamuzaK committed Feb 5, 2024
1 parent eb73452 commit a374887
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/color.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4387,6 +4387,11 @@ describe('resolve color value', () => {
assert.deepEqual(res, [128, 84, 87, 1], 'result');
});

it('should get value', () => {
const res = func('rgb(5% 10% 20%)');
assert.deepEqual(res, [13, 26, 51, 1], 'result');
});

it('should get value', () => {
const res = func('hsl(240 100% 50% / 0.5)');
assert.deepEqual(res, [0, 0, 255, 0.5], 'result');
Expand Down

0 comments on commit a374887

Please sign in to comment.