Skip to content

Commit

Permalink
fix: test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alyssa.Yu authored and Alyssa.Yu committed Aug 23, 2023
1 parent 8f1f7af commit 766aa6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/analytics-browser-test/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ describe('integration', () => {
beforeEach(() => {
client = amplitude.createInstance();
apiKey = UUID();
Object.defineProperty(document, 'referrer', { value: 'a.b.c', configurable: true });
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-web-attribution-browser/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const isNewCampaign = (
}

//In the same session, no referrer should not override or unset any persisting query params
if (!isNewSession && !referring_domain) {
if (!isNewSession && !referrer) {
return false;
}

Expand Down

0 comments on commit 766aa6a

Please sign in to comment.