File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ test('CPagination customize', async () => {
16
16
)
17
17
expect ( container ) . toMatchSnapshot ( )
18
18
let element = container . firstChild
19
- if ( element !== null ) {
19
+ if ( element === null ) {
20
+ expect ( true ) . toBe ( false )
21
+ } else {
20
22
element = element . firstChild
21
23
expect ( element ) . toHaveClass ( 'bazinga' )
22
24
expect ( element ) . toHaveClass ( 'pagination' )
23
25
expect ( element ) . toHaveClass ( 'pagination-lg' )
24
- } else {
25
- expect ( true ) . toBe ( false )
26
26
}
27
27
} )
28
28
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ test('CPaginationItem customize', async () => {
20
20
expect ( container . firstChild ) . toHaveClass ( 'active' )
21
21
expect ( container . firstChild ) . toHaveClass ( 'disabled' )
22
22
let element = container . firstChild
23
- if ( element !== null ) {
23
+ if ( element === null ) {
24
+ expect ( true ) . toBe ( false )
25
+ } else {
24
26
element = element . firstChild
25
27
expect ( element ) . toHaveClass ( 'page-link' )
26
- } else {
27
- expect ( true ) . toBe ( false )
28
28
}
29
29
} )
You can’t perform that action at this time.
0 commit comments