Skip to content

Commit 1e2f658

Browse files
committed
remove skipped test
1 parent ff72905 commit 1e2f658

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

packages/instantsearch.js/src/middlewares/__tests__/createInsightsMiddleware.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -442,37 +442,6 @@ describe('insights', () => {
442442
);
443443
});
444444

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-
476445
it('applies clickAnalytics if $$automatic: undefined', () => {
477446
const { insightsClient, instantSearchInstance } = createTestEnvironment();
478447
instantSearchInstance.use(

0 commit comments

Comments
 (0)