Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
asamuzaK committed Dec 7, 2024
1 parent d5754f7 commit 7d7da46
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ describe('parseColor', () => {
assert.strictEqual(output, 'rgb(128, 0, 128)');
});

it('should convert modern rgb with none values to rgb values', () => {
let input = 'rgb(128 0 none)';
let output = parsers.parseColor(input);

assert.strictEqual(output, 'rgb(128, 0, 0)');
});

it('should convert modern rgba to rgba values', () => {
let input = 'rgba(127.5 0 127.5 / .5)';
let output = parsers.parseColor(input);
Expand Down

0 comments on commit 7d7da46

Please sign in to comment.