- 同步商品与订单时处理线上删除状态并联动自动化规则\n- 过滤卖家系统中的购买订单,修复订单逻辑删除与数据库迁移\n- 修复聊天新消息自动滚动,并统一前端颜色令牌与硬编码颜色检查
18 lines
750 B
TypeScript
18 lines
750 B
TypeScript
import { readFileSync } from 'node:fs';
|
|
import { resolve } from 'node:path';
|
|
import { describe, expect, test } from 'vitest';
|
|
|
|
const itemList = readFileSync(resolve(__dirname, 'components/ItemList.tsx'), 'utf8');
|
|
|
|
describe('item list primary action colors', () => {
|
|
test('uses the shared primary blue for batch publishing', () => {
|
|
expect(itemList).toContain('bg-brand text-white hover:bg-brand-highlight');
|
|
expect(itemList).not.toContain('bg-blue-600 text-white hover:bg-blue-700');
|
|
});
|
|
|
|
test('uses the lighter emerald tone for publishing actions', () => {
|
|
expect(itemList).toContain('bg-emerald-500 text-white hover:bg-emerald-600');
|
|
expect(itemList).not.toContain('bg-emerald-600 text-white hover:bg-emerald-700');
|
|
});
|
|
});
|