Skip to content

Commit 12f299b

Browse files
committed
add test
1 parent c519687 commit 12f299b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/index.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,14 @@ describe('Other props', () => {
251251
/>,
252252
);
253253
const item = container.querySelector('.rc-pagination-item');
254+
const prev = container.querySelector('.rc-pagination-prev');
255+
const next = container.querySelector('.rc-pagination-next');
254256
expect(item).toHaveClass('custom-test');
257+
expect(prev).toHaveClass('custom-test');
258+
expect(next).toHaveClass('custom-test');
255259
expect(item).toHaveStyle('color: red');
260+
expect(prev).toHaveStyle('color: red');
261+
expect(next).toHaveStyle('color: red');
256262
});
257263
it('should support custom default icon', () => {
258264
const nextIcon = () => <span>nextIcon</span>;

0 commit comments

Comments
 (0)