From 7a371a627023bbc7607dc730df262cbf2bd5f067 Mon Sep 17 00:00:00 2001 From: Dominik Buszowiecki Date: Thu, 18 Jan 2024 14:32:12 -0500 Subject: [PATCH] fix linting --- .../test/browser/metrics/index.test.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/tracing-internal/test/browser/metrics/index.test.ts b/packages/tracing-internal/test/browser/metrics/index.test.ts index 1cf999f150b1..bccfa53c4e35 100644 --- a/packages/tracing-internal/test/browser/metrics/index.test.ts +++ b/packages/tracing-internal/test/browser/metrics/index.test.ts @@ -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; -} +};