Skip to content

Commit ca4e913

Browse files
committed
test: remove tests for deprecated listItem prop
1 parent 26ee89a commit ca4e913

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

src/components/__tests__/FontAwesomeIcon.test.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -318,16 +318,6 @@ describe('FontAwesomeIcon', () => {
318318
})
319319
})
320320

321-
test('using listItem', () => {
322-
render(<FontAwesomeIcon icon={faCoffee} listItem={true} />)
323-
324-
const element = screen.getByRole('img', { hidden: true })
325-
326-
expect(element).toBeDefined()
327-
expect(element).toBeInstanceOf(SVGSVGElement)
328-
expect(element).toHaveClass('fa-li')
329-
})
330-
331321
describe('using pull', () => {
332322
test('right', () => {
333323
render(<FontAwesomeIcon icon={faCoffee} pull="right" />)

src/utils/__tests__/get-class-list-from-props.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ describe('get class list', () => {
1414
border: true,
1515
fixedWidth: true,
1616
inverse: true,
17-
listItem: true,
1817
pulse: true,
1918
spin: true,
2019
spinPulse: true,
@@ -44,7 +43,6 @@ describe('get class list', () => {
4443
'fa-fw',
4544
'fa-inverse',
4645
'fa-border',
47-
'fa-li',
4846
'fa-flip',
4947
'fa-swap-opacity',
5048
]
@@ -132,15 +130,14 @@ describe('get class list', () => {
132130
test.each<keyof FontAwesomeIconProps>(['pull', 'rotation', 'size'])(
133131
'when prop "%s" is null',
134132
(prop) => {
135-
const NUM_CLASSES = 6
133+
const NUM_CLASSES = 5
136134

137135
const props = {
138136
spin: true,
139137
pulse: true,
140138
fixedWidth: true,
141139
inverse: true,
142140
border: true,
143-
listItem: true,
144141
[prop]: null,
145142
} as unknown as FontAwesomeIconProps
146143

@@ -151,7 +148,6 @@ describe('get class list', () => {
151148
'fa-fw',
152149
'fa-inverse',
153150
'fa-border',
154-
'fa-li',
155151
])
156152
},
157153
)

0 commit comments

Comments
 (0)