Skip to content

Commit

Permalink
Merge pull request react-bootstrap#1400 from AlexKVal/fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKVal committed Oct 9, 2015
2 parents fcb36a1 + 1885ee6 commit 44182b7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/PaginationSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,11 @@ describe('Pagination', () => {
// add first, last, prev, next and ellipsis button
assert.equal(pageButtons.length, 8);

assert.equal(React.findDOMNode(pageButtons[0]).innerText, 'first');
assert.equal(React.findDOMNode(pageButtons[1]).innerText, 'prev');
assert.equal(React.findDOMNode(pageButtons[5]).innerText, 'more');
assert.equal(React.findDOMNode(pageButtons[6]).innerText, 'next');
assert.equal(React.findDOMNode(pageButtons[7]).innerText, 'last');

assert.equal(pageButtons[0].innerText, 'first');
assert.equal(pageButtons[1].innerText, 'prev');
assert.equal(pageButtons[5].innerText, 'more');
assert.equal(pageButtons[6].innerText, 'next');
assert.equal(pageButtons[7].innerText, 'last');
});

it('Should enumerate pagenums correctly when ellipsis=true', () => {
Expand Down

0 comments on commit 44182b7

Please sign in to comment.