diff --git a/packages/browser/src/core/events/__tests__/index.test.ts b/packages/browser/src/core/events/__tests__/index.test.ts index 39841f922..be7d36b5f 100644 --- a/packages/browser/src/core/events/__tests__/index.test.ts +++ b/packages/browser/src/core/events/__tests__/index.test.ts @@ -13,13 +13,6 @@ describe('Event Factory', () => { const shopper = { totalSpent: 100 } const defaultContext = { - locale: 'en-US', - library: { - // already tested in page-enrichment - name: 'analytics.js', - version: expect.stringContaining('npm:next-'), - }, - userAgent: navigator.userAgent, page: getDefaultPageContext(), } diff --git a/packages/browser/src/plugins/page-enrichment/__tests__/index.test.ts b/packages/browser/src/plugins/page-enrichment/__tests__/index.test.ts index 6f10ef8a3..21c59dd94 100644 --- a/packages/browser/src/plugins/page-enrichment/__tests__/index.test.ts +++ b/packages/browser/src/plugins/page-enrichment/__tests__/index.test.ts @@ -6,6 +6,10 @@ import { pick } from '../../../lib/pick' import { SegmentioSettings } from '../../segmentio' import { version } from '../../../generated/version' import { CoreExtraContext } from '@segment/analytics-core' +/** + * TODO: move this to top level tests and rename to page-enrichment.integration.test.ts + * These tests are not unit tests and test functionality outside of the plugin. + */ let ajs: Analytics