Skip to content

Commit 454a5e8

Browse files
committed
Remove duplicate test cases
1 parent cb41b06 commit 454a5e8

File tree

2 files changed

+0
-45
lines changed

2 files changed

+0
-45
lines changed

src/rules/__tests__/a11y-no-duplicate-form-labels.test.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ ruleTester.run('a11y-no-duplicate-form-labels', rule, {
3939
<TextInput />
4040
</FormControl>`,
4141

42-
// FormControl without FormControl.Label but with aria-label is valid
43-
`import {FormControl, TextInput} from '@primer/react';
44-
<FormControl>
45-
<TextInput aria-label="Form Input Label" />
46-
</FormControl>`,
47-
4842
// Multiple TextInputs with different approaches
4943
`import {FormControl, TextInput} from '@primer/react';
5044
<div>

src/rules/__tests__/no-wildcard-imports.test.js

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,6 @@ ruleTester.run('no-wildcard-imports', rule, {
7171
],
7272
},
7373

74-
// Test default import
75-
{
76-
code: `import useIsomorphicLayoutEffect from '@primer/react/lib-esm/utils/useIsomorphicLayoutEffect'`,
77-
output: `import {useIsomorphicLayoutEffect} from '@primer/react'`,
78-
errors: [
79-
{
80-
messageId: 'wildcardMigration',
81-
data: {
82-
wildcardEntrypoint: '@primer/react/lib-esm/utils/useIsomorphicLayoutEffect',
83-
},
84-
},
85-
],
86-
},
87-
8874
// Test multiple wildcard imports into single entrypoint
8975
{
9076
code: `import {useResizeObserver} from '@primer/react/lib-esm/hooks/useResizeObserver'
@@ -308,18 +294,6 @@ import {type ButtonBaseProps} from '@primer/react/experimental'`,
308294
},
309295
],
310296
},
311-
{
312-
code: `import type {ItemProps} from '@primer/react/lib-esm/deprecated/ActionList/Item'`,
313-
output: `import {type ActionListItemProps as ItemProps} from '@primer/react/deprecated'`,
314-
errors: [
315-
{
316-
messageId: 'wildcardMigration',
317-
data: {
318-
wildcardEntrypoint: '@primer/react/lib-esm/deprecated/ActionList/Item',
319-
},
320-
},
321-
],
322-
},
323297

324298
// Hooks -------------------------------------------------------------------
325299

@@ -393,19 +367,6 @@ import {type ButtonBaseProps} from '@primer/react/experimental'`,
393367

394368
// Utilities ---------------------------------------------------------------
395369

396-
// @primer/react/lib-esm/sx
397-
{
398-
code: `import type {BetterSystemStyleObject, SxProp, BetterCssProperties} from '@primer/react/lib-esm/sx'`,
399-
output: `import {type BetterSystemStyleObject, type SxProp, type BetterCssProperties} from '@primer/react'`,
400-
errors: [
401-
{
402-
messageId: 'wildcardMigration',
403-
data: {
404-
wildcardEntrypoint: '@primer/react/lib-esm/sx',
405-
},
406-
},
407-
],
408-
},
409370
// @primer/react/lib-esm/FeatureFlags/DefaultFeatureFlags
410371
{
411372
code: `import {DefaultFeatureFlags} from '@primer/react/lib-esm/FeatureFlags/DefaultFeatureFlags'`,

0 commit comments

Comments
 (0)