diff --git a/packages/components/src/components/badge/test/html.mock.ts b/packages/components/src/components/badge/test/html.mock.ts index e4ec5d5c8c..681615f78d 100644 --- a/packages/components/src/components/badge/test/html.mock.ts +++ b/packages/components/src/components/badge/test/html.mock.ts @@ -22,7 +22,7 @@ export const getBadgeHtml = (props: BadgeProps, options?: SpanOptions): string = return ` - <${KolSpanWcTag} _allowMarkdown ${props._icons ? `_icons="${props._icons}"` : ''} ${props._label ? `_label="${props._label}"` : ''}> + <${KolSpanWcTag} _allowMarkdown ${props._icons ? `_icons="${props._icons as string}"` : ''} ${props._label ? `_label="${props._label}"` : ''}> `;