Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: lint
  • Loading branch information
Alex S authored and francoischalifour committed Oct 3, 2018
commit e3a1505e6e5e0125f5a2c7f1e4a45e9dd3802b93
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ describe('connectToggleRefinement', () => {

test('should update the SP base on the UI state (two values)', () => {
const [widget, helper, refine] = getInitializedWidget({
on: 'free-shipping',
off: 'paid-shipping',
on: 'free-shipping',
off: 'paid-shipping',
});
refine({ isRefined: false });
const uiState = {};
Expand All @@ -516,8 +516,8 @@ describe('connectToggleRefinement', () => {

test('should update the SP base on the UI state - toggled (two values)', () => {
const [widget, helper] = getInitializedWidget({
on: 'free-shipping',
off: 'paid-shipping',
on: 'free-shipping',
off: 'paid-shipping',
});
const uiState = {
toggle: {
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/pagination/__tests__/pagination-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('pagination()', () => {
widget = pagination({ container });
widget.init({ helper });
widget.render({ results, helper, state: { page: 0 } });
const { props: { setCurrentPage } } = ReactDOM.render.mock.calls[0][0];
const { props: { setCurrentPage } } = ReactDOM.render.firstCall.args[0];
setCurrentPage(2);
expect(scrollIntoView).toHaveBeenCalledTimes(1);
});
Expand Down