config redirect

This commit is contained in:
Nuno Coração
2023-01-29 22:30:24 +00:00
parent 17557c7d73
commit 5fb4bd8083
9905 changed files with 1258996 additions and 36355 deletions

41
node_modules/khroma/test/methods/hsla.js generated vendored Normal file
View File

@@ -0,0 +1,41 @@
/* IMPORT */
import {describe} from 'fava';
import {hsla} from '../../dist/index.js';
/* MAIN */
describe ( 'hsla', it => {
it ( 'creates a new color given its hsla channels.', t => {
const tests = [
[[0, 0, 0, 0], 'hsla(0, 0%, 0%, 0)'],
[[0, 0, 0, 0.5], 'hsla(0, 0%, 0%, 0.5)'],
[[0, 0, 0, 1], 'hsl(0, 0%, 0%)'],
[[180, 50, 50, 1], 'hsl(180, 50%, 50%)'],
[[-1, -1, -1, -1], 'hsla(-1, 0%, 0%, 0)'],
[[1000, 1000, 1000, 1000], 'hsl(280, 100%, 100%)']
];
tests.forEach ( ([ args, output ]) => {
t.is ( hsla ( ...args ), output );
});
});
it ( 'allows ommiting the alpha channel', t => {
const tests = [
[[0, 0, 0], 'hsl(0, 0%, 0%)'],
[[180, 50, 50], 'hsl(180, 50%, 50%)']
];
tests.forEach ( ([ args, output ]) => {
t.is ( hsla ( ...args ), output );
});
});
});