Skip to content

Commit 92ffcc2

Browse files
committed
tests: update tests
1 parent 7b4319f commit 92ffcc2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/coreui-react/src/components/pagination/__tests__/CPagination.spec.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ test('CPagination customize', async () => {
1616
)
1717
expect(container).toMatchSnapshot()
1818
let element = container.firstChild
19-
if (element !== null) {
19+
if (element === null) {
20+
expect(true).toBe(false)
21+
} else {
2022
element = element.firstChild
2123
expect(element).toHaveClass('bazinga')
2224
expect(element).toHaveClass('pagination')
2325
expect(element).toHaveClass('pagination-lg')
24-
} else {
25-
expect(true).toBe(false)
2626
}
2727
})
2828

packages/coreui-react/src/components/pagination/__tests__/CPaginationItem.spec.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ test('CPaginationItem customize', async () => {
2020
expect(container.firstChild).toHaveClass('active')
2121
expect(container.firstChild).toHaveClass('disabled')
2222
let element = container.firstChild
23-
if (element !== null) {
23+
if (element === null) {
24+
expect(true).toBe(false)
25+
} else {
2426
element = element.firstChild
2527
expect(element).toHaveClass('page-link')
26-
} else {
27-
expect(true).toBe(false)
2828
}
2929
})

0 commit comments

Comments
 (0)