Skip to content

Commit 7a371a6

Browse files
committed
fix linting
1 parent 3c83b80 commit 7a371a6

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

packages/tracing-internal/test/browser/metrics/index.test.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,13 @@ describe('_addResourceSpans', () => {
262262
});
263263

264264
const setGlobalLocation = (location: Location) => {
265-
// @ts-expect-error need to override global document
265+
// @ts-expect-error need to delete this in order to set to new value
266266
delete WINDOW.location;
267267
WINDOW.location = mockWindowLocation;
268-
269-
console.log('\n\n WINDOW origin!! \n\n');
270-
console.log(WINDOW.location.origin);
271-
console.log('\n\n');
272-
}
268+
};
273269

274270
const resetGlobalLocation = () => {
271+
// @ts-expect-error
272+
delete WINDOW.location;
275273
WINDOW.location = originalLocation;
276-
}
274+
};

0 commit comments

Comments
 (0)