修复索引样式测试的选择器字面量
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:
+1
-1
@@ -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)');
|
||||
|
||||
Reference in New Issue
Block a user