UNPKG

utilyx

Version:

Modern utility helper library for cleaner, faster TypeScript/JavaScript development 🚀🔧

10 lines (9 loc) • 416 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const conversions_1 = require("../conversions"); test('bytesToHumanReadable should convert bytes correctly', () => { expect((0, conversions_1.bytesToHumanReadable)(1024)).toBe('1.00 KB'); }); test('hexToRgb should convert hex to RGB', () => { expect((0, conversions_1.hexToRgb)('#ffffff')).toEqual({ r: 255, g: 255, b: 255 }); });