修复索引样式测试的选择器字面量
Project CI / Repository checks (pull_request) Successful in 1m7s
Project CI / Frontend tests (pull_request) Successful in 3m38s
Project CI / Backend tests (pull_request) Successful in 4m0s
Project CI / Native shell tests (pull_request) Successful in 14m8s

Prettier 把 .creation-landing__asset-waterfall--masonry 与
> .creation-landing__asset-card 合并成单行后,index.test.ts 里按原始换行
硬编码的选择器字面量匹配不到,getCssBlock 返回 -1。

字面量改为与格式化后的源码一致。选择器语义未变。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-06 09:21:50 +00:00
parent a0b213e718
commit f7379247ce
+1 -1
View File
@@ -50,7 +50,7 @@ describe('index stylesheet unread dots', () => {
);
const masonryCardBlock = getCssBlock(
css,
'.creation-landing__asset-waterfall--masonry\n > .creation-landing__asset-card',
'.creation-landing__asset-waterfall--masonry > .creation-landing__asset-card',
);
const cardBlock = getCssBlock(css, '\n.creation-landing__asset-card {');
const tabletQueryIndex = css.indexOf('@media (max-width: 900px)');