|
1 | 1 | import { describe, it, expect, vi } from "vitest"; |
2 | 2 | import { renderToString } from "react-dom/server"; |
3 | | -import { ProductCardLayoutEnum } from "."; |
| 3 | +import { ProductCardLayoutEnum, ProductCardButtonVariantEnum, VectorGraphicKindEnum, VectorGraphicShadowEnum } from "."; |
4 | 4 | import { ProductCard } from "./ProductCard"; |
5 | 5 |
|
6 | 6 | describe("ProductCard - SSR Tests", () => { |
@@ -35,8 +35,8 @@ describe("ProductCard - SSR Tests", () => { |
35 | 35 | title="Test" |
36 | 36 | description="Test" |
37 | 37 | buttons={[ |
38 | | - { label: "Learn More", href: "/learn", variant: "primary" }, |
39 | | - { label: "Contact", href: "/contact", variant: "secondary" }, |
| 38 | + { label: "Learn More", href: "/learn", variant: ProductCardButtonVariantEnum.Primary }, |
| 39 | + { label: "Contact", href: "/contact", variant: ProductCardButtonVariantEnum.Secondary }, |
40 | 40 | ]} |
41 | 41 | /> |
42 | 42 | ); |
@@ -104,9 +104,9 @@ describe("ProductCard - SSR Tests", () => { |
104 | 104 | image={{ |
105 | 105 | type: "graphic", |
106 | 106 | shapes: [ |
107 | | - { kind: "circle", x: 50, y: 50, size: 80, gradient: "blue" }, |
108 | | - { kind: "rect", x: 30, y: 30, width: 60, height: 40, gradient: "aqua-green" }, |
109 | | - { kind: "hex", x: 70, y: 70, size: 60, gradient: "purple" }, |
| 107 | + { kind: VectorGraphicKindEnum.Circle, x: 50, y: 50, size: 80, gradient: "blue" }, |
| 108 | + { kind: VectorGraphicKindEnum.Rect, x: 30, y: 30, width: 60, height: 40, gradient: "aqua-green" }, |
| 109 | + { kind: VectorGraphicKindEnum.Hex, x: 70, y: 70, size: 60, gradient: "purple" }, |
110 | 110 | ], |
111 | 111 | }} |
112 | 112 | /> |
@@ -223,9 +223,9 @@ describe("ProductCard - SSR Tests", () => { |
223 | 223 | title="Test" |
224 | 224 | description="Test" |
225 | 225 | buttons={[ |
226 | | - { label: "Primary", variant: "primary", href: "#" }, |
227 | | - { label: "Secondary", variant: "secondary", href: "#" }, |
228 | | - { label: "Tertiary", variant: "tertiary", href: "#" }, |
| 226 | + { label: "Primary", variant: ProductCardButtonVariantEnum.Primary, href: "#" }, |
| 227 | + { label: "Secondary", variant: ProductCardButtonVariantEnum.Secondary, href: "#" }, |
| 228 | + { label: "Tertiary", variant: ProductCardButtonVariantEnum.Tertiary, href: "#" }, |
229 | 229 | ]} |
230 | 230 | /> |
231 | 231 | ); |
@@ -297,7 +297,7 @@ describe("ProductCard - SSR Tests", () => { |
297 | 297 | image={{ |
298 | 298 | type: "graphic", |
299 | 299 | shapes: [ |
300 | | - { kind: "circle", x: 50, y: 50, size: 80, gradient: "blue", shadow: "soft" }, |
| 300 | + { kind: VectorGraphicKindEnum.Circle, x: 50, y: 50, size: 80, gradient: "blue", shadow: VectorGraphicShadowEnum.Soft }, |
301 | 301 | ], |
302 | 302 | }} |
303 | 303 | /> |
|
0 commit comments