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/invert.js
generated
vendored
Normal file
25
node_modules/khroma/test/methods/invert.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
/* IMPORT */
|
||||
|
||||
import {describe} from 'fava';
|
||||
import {invert} from '../../dist/index.js';
|
||||
|
||||
/* MAIN */
|
||||
|
||||
describe ( 'invert', it => {
|
||||
|
||||
it ( 'gets the inverse of the color', t => {
|
||||
|
||||
const tests = [
|
||||
[['#b37399'], '#4c8c66'],
|
||||
[['black'], '#ffffff'],
|
||||
[['#550e0c', 20 ], 'rgb(102, 59.4, 58.2)']
|
||||
];
|
||||
|
||||
tests.forEach ( ([ args, output ]) => {
|
||||
t.is ( invert ( ...args ), output );
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user