import type { Token } from "style-dictionary" import { isTransition } from "./isTransition" describe("isTransition", () => { it("should return true for transition tokens", () => { const token: Token = { value: "all 0.3s ease", type: "transition", } expect(isTransition(token)).toBe(true) }) it("should return false for non-transition tokens", () => { const token: Token = { value: "1px solid black", type: "border", } expect(isTransition(token)).toBe(false) }) it("should return false when type is undefined", () => { const token: Token = { value: "something", } expect(isTransition(token)).toBe(false) }) })