From c681cb6bfa18606f017263a8d880a162cbe86802 Mon Sep 17 00:00:00 2001 From: xmlwizard Date: Tue, 17 Dec 2024 20:51:46 +0200 Subject: [PATCH] fix: temp now works as expected --- tests/utils.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/utils.test.ts b/tests/utils.test.ts index c436e3b2..5a710f95 100644 --- a/tests/utils.test.ts +++ b/tests/utils.test.ts @@ -1,4 +1,4 @@ -import { alpha, family, mc, temp, token } from "../lib/utils.ts"; +import { achromatic, alpha, family, mc, temp, token } from "../lib/utils.ts"; import runner, { type Spec } from "./runner.ts"; @@ -103,6 +103,11 @@ const specs: Spec[] = [{ description: 'gets the estimated color temperature of a color token', params: [str], callback: temp +}, +{ + description: 'checks if a color is grayscale or not', + params: [str], + callback: achromatic } ];