Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

396 B
Raw Blame
import { getAvatarInitial } from './avatar'

describe('getAvatarInitial', () => {
  it.each([
    [' alice ', 'A'],
    ['🧑‍💻 Alex', '🧑‍💻'],
    ['𠮷田', '𠮷'],
    ['e\u0301mile', 'E\u0301'],
    ['', '?'],
    ['   ', '?'],
    [undefined, '?'],
  ])('uses the first complete grapheme of %s', (name, expected) => {
    expect(getAvatarInitial(name)).toBe(expected)
  })
})