File tree 1 file changed +0
-31
lines changed
packages/instantsearch.js/src/middlewares/__tests__
1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -442,37 +442,6 @@ describe('insights', () => {
442
442
) ;
443
443
} ) ;
444
444
445
- it . skip ( 'warns when userToken is not set' , ( ) => {
446
- const { insightsClient, instantSearchInstance } = createTestEnvironment ( ) ;
447
-
448
- instantSearchInstance . use (
449
- createInsightsMiddleware ( {
450
- insightsClient,
451
- insightsInitParams : {
452
- useCookie : false ,
453
- anonymousUserToken : false ,
454
- } ,
455
- } )
456
- ) ;
457
-
458
- expect ( ( ) =>
459
- instantSearchInstance . sendEventToInsights ( {
460
- eventType : 'view' ,
461
- insightsMethod : 'viewedObjectIDs' ,
462
- payload : {
463
- eventName : 'Hits Viewed' ,
464
- index : '' ,
465
- objectIDs : [ '1' , '2' ] ,
466
- } ,
467
- widgetType : 'ais.hits' ,
468
- } )
469
- ) . toWarnDev (
470
- `[InstantSearch.js]: Cannot send event to Algolia Insights because \`userToken\` is not set.
471
-
472
- See documentation: https://www.algolia.com/doc/guides/building-search-ui/going-further/send-insights-events/js/#setting-the-usertoken`
473
- ) ;
474
- } ) ;
475
-
476
445
it ( 'applies clickAnalytics if $$automatic: undefined' , ( ) => {
477
446
const { insightsClient, instantSearchInstance } = createTestEnvironment ( ) ;
478
447
instantSearchInstance . use (
You can’t perform that action at this time.
0 commit comments