| 12345678910111213 |
- import { expect, it } from 'vitest';
- import {
- pointSourceLabel,
- telegramPermissionLabel,
- telegramStatusLabel,
- } from '@/utils/labels';
- it('将接口内部值显示为中文', () => {
- expect(pointSourceLabel('giveaway_winner')).toBe('抽奖中奖奖励');
- expect(telegramPermissionLabel('can_restrict_members')).toBe('限制成员');
- expect(telegramStatusLabel('administrator')).toBe('管理员');
- });
|