对齐官方 WebSocket 批量握手、注册、心跳、ACK、同步恢复及运行时设备标识生命周期。 保留 Cookie 完整属性,接入静默续期和保存登录信息设置,并在凭证更新后重建账号连接。 完善订单与商品同步、卡券和通知渠道交互,更新前端品牌、时间展示及嵌入资源。 补充 Go 与前端回归测试,确保完整检查和生产构建通过。
22 lines
845 B
TypeScript
22 lines
845 B
TypeScript
import React from 'react';
|
|
import { renderToStaticMarkup } from 'react-dom/server';
|
|
import { describe, expect, test } from 'vitest';
|
|
import YdisksLogo, { YdisksBrandIcon } from './YdisksLogo';
|
|
|
|
describe('YdisksLogo', () => {
|
|
test('uses the complete 256px brand coordinate system', () => {
|
|
const html = renderToStaticMarkup(<YdisksLogo />);
|
|
expect(html).toContain('viewBox="0 0 256 256"');
|
|
expect(html).toContain('M121.73,57.0003');
|
|
expect(html).toContain('fill="currentColor"');
|
|
});
|
|
|
|
test('renders the complete gradient squircle brand wrapper', () => {
|
|
const html = renderToStaticMarkup(<YdisksBrandIcon />);
|
|
expect(html).toContain('viewBox="0 0 120 120"');
|
|
expect(html).toContain('id="login-squircle-gradient"');
|
|
expect(html).toContain('M 114.00 60.00');
|
|
expect(html).toContain('w-12 h-12');
|
|
});
|
|
});
|