Files
Andrei 58f8093689 Rebrand from 'Redirect Intelligence v2' to 'URL Tracker Tool V2' throughout UI
- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
2025-08-19 19:12:23 +00:00

42 lines
873 B
JavaScript

/* 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 );
});
});
});