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

> 9 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-social-core-converters-style-converter-test-ts
Source text: https://banes-lab.com/source/testing/test.social/core/converters/style.converter.test.ts.txt

Listed in [test.social/core/converters](https://banes-lab.com/api/source/testing/test.social/core/converters.md), after [test.social/core/converters/image.converter.test.ts](https://banes-lab.com/source/testing/test.social/core/converters/image.converter.test.ts.md).

## Contained in

- [test.social/core/converters](https://banes-lab.com/anatomy/testing/folder-testing-test-social-core-converters.md)

## Source

```typescript
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");
    });
});
```
