From 1885ee66ef32e2ca552feb4d20fe80da5803677b Mon Sep 17 00:00:00 2001 From: AlexKVal Date: Fri, 9 Oct 2015 18:53:49 +0300 Subject: [PATCH] Fix for #1376 because of React-0.14 changes --- test/PaginationSpec.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/PaginationSpec.js b/test/PaginationSpec.js index b6a6aeb767..755c98e66a 100644 --- a/test/PaginationSpec.js +++ b/test/PaginationSpec.js @@ -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', () => {