diff options
Diffstat (limited to 'frontend/src/lib')
| -rw-r--r-- | frontend/src/lib/mobileCss.test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/lib/mobileCss.test.ts b/frontend/src/lib/mobileCss.test.ts index 43e0924..33e064c 100644 --- a/frontend/src/lib/mobileCss.test.ts +++ b/frontend/src/lib/mobileCss.test.ts @@ -58,7 +58,7 @@ describe('round5 守门:无自定义选择器(tailwind 工具类除外)', it('src/pages 90+ 处 class 全部是 tailwind 工具类(无 legacy 组件类名)', () => { const tokens = new Set(); for (const src of pageSources) for (const c of extractClasses(src)) tokens.add(c); - const offenders = tokens.filter((c) => legacy.some((l) => c === l.slice(1) || c.startsWith(l))); + const offenders = [...tokens].filter((c) => legacy.some((l) => c === l.slice(1) || c.startsWith(l))); // data-testid 属性不是 class;tailwind 任意值与变体直接放行 expect(offenders).toEqual([]); }); |
