mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
feat: api nodes icon
This commit is contained in:
@@ -305,8 +305,6 @@ interface Props {
|
||||
loadingTier?: CheckoutTierKey | null
|
||||
}
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
isLoading: false,
|
||||
loadingTier: null
|
||||
|
||||
@@ -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]')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user