You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
659 B
14 lines
659 B
import { describe, expect, it } from 'vitest' |
|
import { getRelayIconFallbackGlyph, getRelayIconOverrideSrc } from '@/lib/relay-icon-source' |
|
|
|
describe('relay icon branding', () => { |
|
it('uses favicon override for sovbit hosts', () => { |
|
expect(getRelayIconOverrideSrc('wss://nostr.sovbit.host/')).toContain('nostr.sovbit.host') |
|
expect(getRelayIconOverrideSrc('wss://freelay.sovbit.host/')).toContain('freelay.sovbit.host') |
|
}) |
|
|
|
it('uses purple circle fallback glyph for purplepag.es', () => { |
|
expect(getRelayIconFallbackGlyph('wss://purplepag.es/')).toBe('🟣') |
|
expect(getRelayIconOverrideSrc('wss://purplepag.es/')).toBeUndefined() |
|
}) |
|
})
|
|
|