mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
config redirect
This commit is contained in:
25
node_modules/khroma/test/methods/complement.js
generated
vendored
Normal file
25
node_modules/khroma/test/methods/complement.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
/* IMPORT */
|
||||
|
||||
import {describe} from 'fava';
|
||||
import {complement} from '../../dist/index.js';
|
||||
|
||||
/* MAIN */
|
||||
|
||||
describe ( 'complement', it => {
|
||||
|
||||
it ( 'gets the complement of the color', t => {
|
||||
|
||||
const tests = [
|
||||
['#6b717f', 'hsl(42, 8.547008547%, 45.8823529412%)'],
|
||||
['#d2e1dd', 'hsl(344, 20%, 85.2941176471%)'],
|
||||
['#036', 'hsl(30, 100%, 20%)']
|
||||
];
|
||||
|
||||
tests.forEach ( ([ color, output ]) => {
|
||||
t.is ( complement ( color ), output );
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user