Skip to content

Commit

Permalink
Until v8, forcePage will *not* totally control the current page state
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsieurV committed Oct 27, 2021
1 parent 4fa55d3 commit 186f474
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions __tests__/PaginationBoxView-test.js
Expand Up @@ -973,7 +973,7 @@ describe('Test custom props', () => {
consoleWarnMock.mockRestore();
});

it('should be totally controlled when forcePage is provided', () => {
it('(observation) is not totally controlled when forcePage is provided', () => {
const pagination = ReactTestUtils.renderIntoDocument(
<PaginationBoxView forcePage={2} />
);
Expand All @@ -991,10 +991,10 @@ describe('Test custom props', () => {
expect(
ReactDOM.findDOMNode(pagination).querySelector('.selected a')
.textContent
).toBe('3');
).toBe('2');
});

it('should be totally controlled when forcePage is provided, even when it is 0', () => {
it('(observation) is not totally controlled when forcePage is provided, even when it is 0', () => {
const pagination = ReactTestUtils.renderIntoDocument(
<PaginationBoxView forcePage={0} />
);
Expand All @@ -1012,7 +1012,7 @@ describe('Test custom props', () => {
expect(
ReactDOM.findDOMNode(pagination).querySelector('.selected a')
.textContent
).toBe('1');
).toBe('2');
});
});

Expand Down

0 comments on commit 186f474

Please sign in to comment.