First Commit. Duplicate bunext-sqlite preset

This commit is contained in:
2026-10-18 16:47:11 +01:00
commit 81e4a8aecc
718 changed files with 41695 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
import { describe, expect, test } from "bun:test";
import hexToRgbFractions from "./hex-to-rgb-fractions";
describe("hexToRgbFractions", () => {
test("converts 6-digit hex", () => {
expect(hexToRgbFractions({ hex: "#ff0000" })).toEqual({
r: 1,
g: 0,
b: 0,
});
});
test("expands 3-digit hex", () => {
expect(hexToRgbFractions({ hex: "#fff" })).toEqual({
r: 1,
g: 1,
b: 1,
});
});
test("ignores alpha", () => {
expect(hexToRgbFractions({ hex: "#00000080" })).toEqual({
r: 0,
g: 0,
b: 0,
});
});
});