feat: api nodes icon

This commit is contained in:
Yourz
2026-02-08 15:17:56 +08:00
parent f25f8ae825
commit ebd8117dc3
2 changed files with 6 additions and 2 deletions

View File

@@ -305,8 +305,6 @@ interface Props {
loadingTier?: CheckoutTierKey | null
}
const { t } = useI18n()
const props = withDefaults(defineProps<Props>(), {
isLoading: false,
loadingTier: null

View File

@@ -37,6 +37,12 @@ describe('getProviderIcon', () => {
)
})
it('handles multiple spaces', () => {
expect(getProviderIcon('Some Provider Name')).toBe(
'icon-[comfy--some-provider-name]'
)
})
it('converts to lowercase', () => {
expect(getProviderIcon('GEMINI')).toBe('icon-[comfy--gemini]')
})