First commit.

Signed-off-by: Chen Xiao <abigwc@gmail.com>
This commit is contained in:
Chen Xiao
2026-05-08 14:43:16 +08:00
commit 0b64e2de94
10989 changed files with 2253791 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
/* IMPORT */
import {describe} from 'fava';
import {isTransparent} from '../../dist/index.js';
/* MAIN */
describe ( 'isTransparent', it => {
it ( 'checks if the provided color is a transparent color', t => {
const tests = [
['transparent', true],
['#00000000', true],
['#ffffff00', true],
['black', false],
['#00000001', false],
['#ffffffff', false],
['#8a8a8a', false],
['#bbbbbb', false],
['#ffcc00', false],
['#e0e0e0', false],
['#ffffff', false]
];
tests.forEach ( ([ color, output ]) => {
t.is ( isTransparent ( color ), output );
});
});
});