Skip to content

Commit

Permalink
test: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
benjycui committed Jul 4, 2017
1 parent 6949383 commit 74ef6ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Pagination.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ describe('Uncontrolled Pagination', () => {
}

function shouldHighlightRight() {
const pagers = TestUtils.scryRenderedDOMComponentsWithTag(pagination, 'li');
const pagers = TestUtils.scryRenderedDOMComponentsWithTag(pagination, 'li')
.filter(pager => pager.className.indexOf('rc-pagination-total-text') === -1);
const current2 = pagination.state.current;
pagers.forEach((pager, index) => {
// page starts from 1
Expand Down Expand Up @@ -71,7 +72,8 @@ describe('Uncontrolled Pagination', () => {
it('should hightlight current page and not highlight other page', shouldHighlightRight);

it('should calc page right', () => {
const pagers = TestUtils.scryRenderedDOMComponentsWithTag(pagination, 'li');
const pagers = TestUtils.scryRenderedDOMComponentsWithTag(pagination, 'li')
.filter(pager => pager.className.indexOf('rc-pagination-total-text') === -1);
const knownPageCount = 3;
const buttonLength = 2;
expect(pagers.length).to.be(knownPageCount + buttonLength);
Expand Down

1 comment on commit 74ef6ab

@benjycui
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix 18fbd57

Please sign in to comment.