Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
because of React-0.14 changes
  • Loading branch information
AlexKVal committed Oct 9, 2015
1 parent fcb36a1 commit 1885ee6
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 1885ee6

Please sign in to comment.