test.social/core/converters/style.converter.test.ts

test.social/core/converters/style.converter.test.ts is a file in Codebase Testing. 9 lines of code and 0 definitions.

import { describe, expect, it } from "vitest";
import { propertyOf } from "@banes-lab/social-share/core/converters/style.converter.ts";

describe("propertyOf", () => {
    it("turns a camel-case style key into its CSS property name", () => {
        expect(propertyOf("fontSize")).toBe("font-size");
        expect(propertyOf("backgroundImage")).toBe("background-image");
        expect(propertyOf("color")).toBe("color");
    });
});