Skip to content

Commit 970735a

Browse files
CopilotStan2032
andcommitted
fix: remove unused regex constants in responsive-layout.test.js
Co-authored-by: Stan2032 <68326386+Stan2032@users.noreply.github.com>
1 parent 7575cc6 commit 970735a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/test/responsive-layout.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ describe('Responsive layout compliance', () => {
4141
it('no fixed widths wider than 480px without responsive prefix', () => {
4242
// Fixed widths like w-[500px] or w-[600px] will overflow 375px mobile.
4343
// Allowed: w-[NNNpx] with sm:/md:/lg: prefix, or inside min-w-/max-w- context
44-
const FIXED_WIDTH = /(?<![:\w-])w-\[(\d+)px\]/g;
4544
const violations = [];
4645
for (const filePath of jsxFiles) {
4746
const content = readFileSync(filePath, 'utf-8');
@@ -78,7 +77,6 @@ describe('Responsive layout compliance', () => {
7877
it('no hardcoded min-width wider than 540px without horizontal scroll container', () => {
7978
// min-w-[NNN] > 540px on a non-scroll container will break mobile.
8079
// Exception: elements inside overflow-x-auto or overflow-x-scroll containers
81-
const MIN_WIDTH = /min-w-\[(\d+)px\]/g;
8280
const violations = [];
8381
for (const filePath of jsxFiles) {
8482
const content = readFileSync(filePath, 'utf-8');

0 commit comments

Comments
 (0)