mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 22:14:29 +09:00
- added radix templates to components panel - support interpolations in css tagged template - added theme with static values
25 lines
438 B
TypeScript
25 lines
438 B
TypeScript
import { expect, test } from "vitest";
|
|
import { css } from "./css";
|
|
|
|
test("parse css", () => {
|
|
expect(css`
|
|
color: red;
|
|
`).toEqual([
|
|
{
|
|
property: "color",
|
|
value: { type: "keyword", value: "red" },
|
|
},
|
|
]);
|
|
});
|
|
|
|
test("support interpolations in local styles", () => {
|
|
expect(css`
|
|
color: ${"red"};
|
|
`).toEqual([
|
|
{
|
|
property: "color",
|
|
value: { type: "keyword", value: "red" },
|
|
},
|
|
]);
|
|
});
|