Skip to content

Commit f609464

Browse files
Copilothotlong
andcommitted
refactor: improve test variable naming per code review
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent c826433 commit f609464

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/plugin-detail/src/__tests__/DetailSection.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ describe('DetailSection', () => {
338338
fields.forEach((field) => {
339339
// No bare col-span-3 at base level — must be lg: prefixed
340340
const classes = field.className.split(/\s+/);
341-
const bareSpan3 = classes.some((c: string) => c === 'col-span-3');
342-
expect(bareSpan3).toBe(false);
341+
const hasBareSpan3 = classes.some((c: string) => c === 'col-span-3');
342+
expect(hasBareSpan3).toBe(false);
343343
});
344344
});
345345

@@ -363,8 +363,8 @@ describe('DetailSection', () => {
363363
const fields = container.querySelectorAll('[class*="col-span"]');
364364
fields.forEach((field) => {
365365
const classes = field.className.split(/\s+/);
366-
const bareSpan2 = classes.some((c: string) => c === 'col-span-2');
367-
expect(bareSpan2).toBe(false);
366+
const hasBareSpan2 = classes.some((c: string) => c === 'col-span-2');
367+
expect(hasBareSpan2).toBe(false);
368368
});
369369
});
370370

0 commit comments

Comments
 (0)