Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikB2014 committed Jan 18, 2024
1 parent 3c83b80 commit 7a371a6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/tracing-internal/test/browser/metrics/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,13 @@ describe('_addResourceSpans', () => {
});

const setGlobalLocation = (location: Location) => {
// @ts-expect-error need to override global document
// @ts-expect-error need to delete this in order to set to new value
delete WINDOW.location;
WINDOW.location = mockWindowLocation;

console.log('\n\n WINDOW origin!! \n\n');
console.log(WINDOW.location.origin);
console.log('\n\n');
}
};

const resetGlobalLocation = () => {
// @ts-expect-error
delete WINDOW.location;
WINDOW.location = originalLocation;
}
};

0 comments on commit 7a371a6

Please sign in to comment.