diff --git a/__tests__/PaginationBoxView-test.js b/__tests__/PaginationBoxView-test.js index ad979b5..a8eafd9 100755 --- a/__tests__/PaginationBoxView-test.js +++ b/__tests__/PaginationBoxView-test.js @@ -2151,21 +2151,25 @@ describe('Test custom props', () => { ReactDOM.findDOMNode(pagination).querySelectorAll('.selected a').length ).toBe(1); expect( - ReactDOM.findDOMNode(pagination).querySelector('.selected a').textContent + ReactDOM.findDOMNode(pagination).querySelector('.selected a') + .textContent ).toBe('2'); // Click to go to page 8. for (let i = 1; i < 7; i++) { ReactTestUtils.Simulate.click(next); expect( - ReactDOM.findDOMNode(pagination).querySelectorAll('.selected a').length + ReactDOM.findDOMNode(pagination).querySelectorAll('.selected a') + .length ).toBe(1); expect( - ReactDOM.findDOMNode(pagination).querySelector('.selected a').textContent - ).toBe(`${2+i}`); + ReactDOM.findDOMNode(pagination).querySelector('.selected a') + .textContent + ).toBe(`${2 + i}`); } expect( - ReactDOM.findDOMNode(pagination).querySelector('.selected a').textContent + ReactDOM.findDOMNode(pagination).querySelector('.selected a') + .textContent ).toBe('8'); ReactTestUtils.Simulate.click(previous); @@ -2174,7 +2178,8 @@ describe('Test custom props', () => { ReactDOM.findDOMNode(pagination).querySelectorAll('.selected a').length ).toBe(1); expect( - ReactDOM.findDOMNode(pagination).querySelector('.selected a').textContent + ReactDOM.findDOMNode(pagination).querySelector('.selected a') + .textContent ).toBe('7'); }); }); diff --git a/demo/index.html b/demo/index.html index 598c99b..c05cf81 100644 --- a/demo/index.html +++ b/demo/index.html @@ -6,10 +6,11 @@ React-Paginate - + integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" + crossorigin="anonymous" + > -