import type { TransformedToken } from "style-dictionary/types" import { describe, expect, it } from "vitest" import { isGradient } from "./isGradient" describe("isGradient", () => { it("should return true for gradient tokens", () => { const token = { value: "linear-gradient(to right, #000, #fff)", type: "gradient", } as TransformedToken expect(isGradient(token)).toBe(true) }) it("should return false for non-gradient tokens", () => { const token = { value: "#000000", type: "color", } as TransformedToken expect(isGradient(token)).toBe(false) }) })