Skip to content

Commit 697f609

Browse files
samoussHaroenv
authored andcommitted
feat: drop suppot for onHistoryChange (#3941)
1 parent 2611da5 commit 697f609

File tree

23 files changed

+0
-121
lines changed

23 files changed

+0
-121
lines changed

src/connectors/geo-search/__tests__/connectGeoSearch-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ describe('connectGeoSearch', () => {
2525
helper,
2626
state: helper.state,
2727
createURL: () => '#',
28-
onHistoryChange: () => {},
2928
});
3029

3130
const { refine } = render.mock.calls[0][0];

src/connectors/hierarchical-menu/__tests__/connectHierarchicalMenu-test.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hierarchica
427427
helper,
428428
state: helper.state,
429429
createURL: () => '#',
430-
onHistoryChange: () => {},
431430
});
432431

433432
// test that rendering has been called during init with isFirstRendering = true
@@ -473,7 +472,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hierarchica
473472
helper,
474473
state: helper.state,
475474
createURL: () => '#',
476-
onHistoryChange: () => {},
477475
});
478476

479477
const firstRenderingOptions = rendering.mock.calls[0][0];
@@ -514,7 +512,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hierarchica
514512
helper,
515513
state: helper.state,
516514
createURL: () => '#',
517-
onHistoryChange: () => {},
518515
});
519516

520517
// During the first rendering there are no facet values
@@ -683,7 +680,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hierarchica
683680
helper,
684681
state: helper.state,
685682
createURL: () => '#',
686-
onHistoryChange: () => {},
687683
});
688684

689685
const { refine } = rendering.mock.calls[0][0];
@@ -800,7 +796,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hierarchica
800796
helper,
801797
state: helper.state,
802798
createURL: () => '#',
803-
onHistoryChange: () => {},
804799
});
805800

806801
widget.render({
@@ -912,7 +907,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hierarchica
912907
helper,
913908
state: helper.state,
914909
createURL: () => '#',
915-
onHistoryChange: () => {},
916910
});
917911

918912
widget.render({

src/connectors/hits-per-page/__tests__/connectHitsPerPage-test.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hits-per-pa
5858
helper,
5959
state: helper.state,
6060
createURL: () => '#',
61-
onHistoryChange: () => {},
6261
});
6362

6463
expect(renderFn).toHaveBeenCalledTimes(1);
@@ -192,7 +191,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hits-per-pa
192191
helper,
193192
state: helper.state,
194193
createURL: () => '#',
195-
onHistoryChange: () => {},
196194
});
197195

198196
const firstRenderOptions = renderFn.mock.calls[0][0];
@@ -275,7 +273,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hits-per-pa
275273
helper,
276274
state: helper.state,
277275
createURL: () => '#',
278-
onHistoryChange: () => {},
279276
});
280277

281278
const firstRenderOptions = renderFn.mock.calls[0][0];
@@ -312,7 +309,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hits-per-pa
312309
helper,
313310
state: helper.state,
314311
createURL: () => '#',
315-
onHistoryChange: () => {},
316312
});
317313

318314
const firstRenderOptions = renderFn.mock.calls[0][0];
@@ -355,7 +351,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hits-per-pa
355351
helper,
356352
state: helper.state,
357353
createURL: () => '#',
358-
onHistoryChange: () => {},
359354
});
360355

361356
const firstRenderOptions = renderFn.mock.calls[0][0];
@@ -398,7 +393,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hits-per-pa
398393
helper,
399394
state: helper.state,
400395
createURL: () => '#',
401-
onHistoryChange: () => {},
402396
});
403397

404398
const firstRenderOptions = renderFn.mock.calls[0][0];
@@ -501,7 +495,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hits-per-pa
501495
helper,
502496
state: helper.state,
503497
createURL: () => '#',
504-
onHistoryChange: () => {},
505498
});
506499

507500
const { refine } = renderFn.mock.calls[0][0];

src/connectors/hits/__tests__/connectHits-test.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hits/js/#co
4040
helper,
4141
state: helper.state,
4242
createURL: () => '#',
43-
onHistoryChange: () => {},
4443
});
4544

4645
expect(renderFn).toHaveBeenCalledTimes(1);
@@ -86,7 +85,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hits/js/#co
8685
helper,
8786
state: helper.state,
8887
createURL: () => '#',
89-
onHistoryChange: () => {},
9088
});
9189

9290
expect(renderFn).toHaveBeenLastCalledWith(
@@ -131,7 +129,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hits/js/#co
131129
helper,
132130
state: helper.state,
133131
createURL: () => '#',
134-
onHistoryChange: () => {},
135132
});
136133

137134
expect(renderFn).toHaveBeenLastCalledWith(
@@ -195,7 +192,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hits/js/#co
195192
helper,
196193
state: helper.state,
197194
createURL: () => '#',
198-
onHistoryChange: () => {},
199195
});
200196

201197
expect(renderFn).toHaveBeenNthCalledWith(
@@ -239,7 +235,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hits/js/#co
239235
helper,
240236
state: helper.state,
241237
createURL: () => '#',
242-
onHistoryChange: () => {},
243238
});
244239

245240
const hits = [{ name: 'name 1' }, { name: 'name 2' }];

src/connectors/menu/__tests__/connectMenu-test.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/menu/js/#co
120120
helper,
121121
state: helper.state,
122122
createURL: () => '#',
123-
onHistoryChange: () => {},
124123
});
125124

126125
// test that rendering has been called during init with isFirstRendering = true
@@ -172,7 +171,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/menu/js/#co
172171
helper,
173172
state: helper.state,
174173
createURL: () => '#',
175-
onHistoryChange: () => {},
176174
});
177175

178176
const firstRenderingOptions = rendering.mock.calls[0][0];
@@ -211,7 +209,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/menu/js/#co
211209
helper,
212210
state: helper.state,
213211
createURL: () => '#',
214-
onHistoryChange: () => {},
215212
});
216213

217214
// During the first rendering there are no facet values
@@ -394,7 +391,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/menu/js/#co
394391
helper,
395392
state: helper.state,
396393
createURL: () => '#',
397-
onHistoryChange: () => {},
398394
});
399395

400396
expect(rendering).toHaveBeenLastCalledWith(
@@ -425,7 +421,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/menu/js/#co
425421
helper,
426422
state: helper.state,
427423
createURL: () => '#',
428-
onHistoryChange: () => {},
429424
});
430425

431426
widget.render({
@@ -490,7 +485,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/menu/js/#co
490485
helper,
491486
state: helper.state,
492487
createURL: () => '#',
493-
onHistoryChange: () => {},
494488
});
495489

496490
widget.render({
@@ -538,7 +532,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/menu/js/#co
538532
helper,
539533
state: helper.state,
540534
createURL: () => '#',
541-
onHistoryChange: () => {},
542535
});
543536

544537
const { refine } = rendering2.mock.calls[0][0];

src/connectors/numeric-menu/__tests__/connectNumericMenu-test.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/numeric-men
7474
helper,
7575
state: helper.state,
7676
createURL: () => '#',
77-
onHistoryChange: () => {},
7877
});
7978

8079
// test that rendering has been called during init with isFirstRendering = true
@@ -138,7 +137,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/numeric-men
138137
helper,
139138
state: helper.state,
140139
createURL: () => '#',
141-
onHistoryChange: () => {},
142140
});
143141

144142
expect(rendering).toHaveBeenLastCalledWith(
@@ -184,7 +182,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/numeric-men
184182
helper,
185183
state: helper.state,
186184
createURL: () => '#',
187-
onHistoryChange: () => {},
188185
});
189186

190187
const firstRenderingOptions = rendering.mock.calls[0][0];
@@ -263,7 +260,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/numeric-men
263260
helper,
264261
state: helper.state,
265262
createURL: () => '#',
266-
onHistoryChange: () => {},
267263
});
268264

269265
expect(rendering).toHaveBeenLastCalledWith(
@@ -326,7 +322,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/numeric-men
326322
helper,
327323
state: helper.state,
328324
createURL: () => '#',
329-
onHistoryChange: () => {},
330325
});
331326

332327
let refine =
@@ -379,7 +374,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/numeric-men
379374
helper,
380375
state: helper.state,
381376
createURL: () => '#',
382-
onHistoryChange: () => {},
383377
});
384378

385379
const refine =
@@ -443,7 +437,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/numeric-men
443437
helper,
444438
state: helper.state,
445439
createURL: () => '#',
446-
onHistoryChange: () => {},
447440
});
448441

449442
const firstRenderingOptions = rendering.mock.calls[0][0];
@@ -488,7 +481,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/numeric-men
488481
helper,
489482
state: helper.state,
490483
createURL: () => '#',
491-
onHistoryChange: () => {},
492484
});
493485

494486
expect(helper.state.page).toBe(2);
@@ -523,7 +515,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/numeric-men
523515
helper,
524516
state: helper.state,
525517
createURL: () => '#',
526-
onHistoryChange: () => {},
527518
});
528519

529520
expect(helper.state.page).toBeUndefined();
@@ -576,7 +567,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/numeric-men
576567
helper,
577568
state: helper.state,
578569
createURL: () => '#',
579-
onHistoryChange: () => {},
580570
});
581571

582572
const { refine } = rendering.mock.calls[0][0];

src/connectors/pagination/__tests__/connectPagination-test.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/pagination/
3232
helper,
3333
state: helper.state,
3434
createURL: () => '#',
35-
onHistoryChange: () => {},
3635
});
3736

3837
{
@@ -91,7 +90,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/pagination/
9190
helper,
9291
state: helper.state,
9392
createURL: () => '#',
94-
onHistoryChange: () => {},
9593
});
9694

9795
{
@@ -136,7 +134,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/pagination/
136134
helper,
137135
state: helper.state,
138136
createURL: () => '#',
139-
onHistoryChange: () => {},
140137
});
141138

142139
// page 0
@@ -202,7 +199,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/pagination/
202199
helper,
203200
state: helper.state,
204201
createURL: () => '#',
205-
onHistoryChange: () => {},
206202
});
207203

208204
widget.render({
@@ -322,7 +318,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/pagination/
322318
helper,
323319
state: helper.state,
324320
createURL: () => '#',
325-
onHistoryChange: () => {},
326321
});
327322

328323
const { refine } = renderFn.mock.calls[0][0];

src/connectors/range/__tests__/connectRange-test.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/range-input
5050
helper,
5151
state: helper.state,
5252
createURL: () => '#',
53-
onHistoryChange: () => {},
5453
});
5554

5655
{
@@ -164,7 +163,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/range-input
164163
helper,
165164
state: helper.state,
166165
createURL: () => '#',
167-
onHistoryChange: () => {},
168166
});
169167

170168
{
@@ -233,7 +231,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/range-input
233231
helper,
234232
state: helper.state,
235233
createURL: () => '#',
236-
onHistoryChange: () => {},
237234
});
238235

239236
{
@@ -273,7 +270,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/range-input
273270
helper,
274271
state: helper.state,
275272
createURL: () => '#',
276-
onHistoryChange: () => {},
277273
});
278274

279275
{
@@ -310,7 +306,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/range-input
310306
helper,
311307
state: helper.state,
312308
createURL: () => '#',
313-
onHistoryChange: () => {},
314309
});
315310

316311
{
@@ -934,7 +929,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/range-input
934929
helper,
935930
state: helper.state,
936931
createURL: () => '#',
937-
onHistoryChange: () => {},
938932
});
939933

940934
const { refine } = rendering.mock.calls[0][0];

src/connectors/rating-menu/__tests__/connectRatingMenu-test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/rating-menu
5050
helper,
5151
state: helper.state,
5252
createURL: () => '#',
53-
onHistoryChange: () => {},
5453
});
5554

5655
{
@@ -157,7 +156,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/rating-menu
157156
helper,
158157
state: helper.state,
159158
createURL: () => '#',
160-
onHistoryChange: () => {},
161159
});
162160

163161
{
@@ -262,7 +260,6 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/rating-menu
262260
helper,
263261
state: helper.state,
264262
createURL: () => '#',
265-
onHistoryChange: () => {},
266263
});
267264

268265
const { refine } = rendering.mock.calls[0][0];

0 commit comments

Comments
 (0)