diff --git a/api/_lib/badge.test.ts b/api/_lib/badge.test.ts new file mode 100644 index 0000000..ec8fb0b --- /dev/null +++ b/api/_lib/badge.test.ts @@ -0,0 +1,33 @@ +import { describe, expect, it } from 'vitest'; +import { renderBadge, textWidth } from './badge'; +import { FLAME_TIERS } from '../../src/utils/flame-tiers'; +import type { SharedProfile } from './profile-card'; + +const profile = { userId: 'u', name: 'Nan