Skip to content

Commit aaa5c67

Browse files
committed
Add tests for #249
1 parent e43d12a commit aaa5c67

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/oklch.test.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import {
66
formatCss,
77
useParser,
88
removeParser,
9-
displayable
9+
displayable,
10+
inGamut
1011
} from '../src/index.js';
1112

1213
test('oklch', t => {
@@ -119,3 +120,8 @@ test('Issue #255', t => {
119120
});
120121
assert.ok(displayable(oklch('tomato')));
121122
});
123+
124+
test('Issue #249', t => {
125+
assert.ok(displayable('oklch(100% 0 0)'));
126+
assert.ok(inGamut('rgb')('oklch(100% 0 0)'));
127+
});

0 commit comments

Comments
 (0)