Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip
Browse files Browse the repository at this point in the history
silesky committed Sep 26, 2023
1 parent dd52053 commit 2566557
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/browser/src/core/events/__tests__/index.test.ts
Original file line number Diff line number Diff line change
@@ -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(),
}

Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2566557

Please sign in to comment.