chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -28,14 +28,14 @@ describe('ResponsiveBox', () => {
<ResponsiveBox contents={[<div key="1">Test Content</div>]} />,
);
// 检查是否渲染了div元素
// Check if the div element is rendered
const boxElement = container.firstChild as HTMLElement;
expect(boxElement.tagName).toBe('DIV');
// 检查内容是否正确
// Check if the content is correct
expect(boxElement.textContent).toBe('Test Content');
// 默认情况下应该有基本的类名
// There should be a basic class name by default
expect(boxElement.className).toContain('w-full');
expect(boxElement.className).toContain('flex');
expect(boxElement.className).toContain('overflow-hidden');

View File

@@ -37,16 +37,16 @@ describe('ResponsiveList', () => {
/>,
);
// 检查是否渲染了div元素
// Check if the div element is rendered
const listElement = container.firstChild as HTMLElement;
expect(listElement.tagName).toBe('DIV');
// 检查是否渲染了所有项目
// Check if all items are rendered
const gridElement = listElement.firstChild as HTMLElement;
expect(gridElement.children.length).toBe(3);
expect(gridElement.textContent).toBe('Item 1Item 2Item 3');
// 检查默认类名
// Check default class name
expect(listElement.className).toContain('flex');
expect(listElement.className).toContain('flex-col');
});