From e1a6cd0061c64fd5ab6cc9429552071663fc0c1b Mon Sep 17 00:00:00 2001 From: Seth Silesky <5115498+silesky@users.noreply.github.com> Date: Tue, 26 Sep 2023 16:26:50 -0500 Subject: [PATCH] wip --- .../plugins/page-enrichment/__tests__/index.test.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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 aa307827d..74124fb02 100644 --- a/packages/browser/src/plugins/page-enrichment/__tests__/index.test.ts +++ b/packages/browser/src/plugins/page-enrichment/__tests__/index.test.ts @@ -11,22 +11,18 @@ import { highEntropyTestData, lowEntropyTestData, } from '../../../test-helpers/fixtures/client-hints' +import { getDefaultPageContext } from '../../../core/page' + /** * 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. + * These tests test functionality outside of the plugin (e.g. addPageContext) */ let ajs: Analytics const helpers = { get pageProps() { - return { - url: 'http://foo.com/bar?foo=hello_world', - path: '/bar', - search: '?foo=hello_world', - referrer: 'http://google.com', - title: 'Hello World', - } + return getDefaultPageContext() }, }