Skip to content

Commit

Permalink
fix(mock-doc): get native primitive from globalThis (#6021)
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann authored Oct 9, 2024
1 parent 61f90b0 commit 72fabd1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/mock-doc/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ import { MockResizeObserver } from './resize-observer';
import { MockShadowRoot } from './shadow-root';
import { MockStorage } from './storage';

const nativeClearInterval = clearInterval;
const nativeClearTimeout = clearTimeout;
const nativeSetInterval = setInterval;
const nativeSetTimeout = setTimeout;
const nativeURL = URL;
const nativeClearInterval = globalThis.clearInterval;
const nativeClearTimeout = globalThis.clearTimeout;
const nativeSetInterval = globalThis.setInterval;
const nativeSetTimeout = globalThis.setTimeout;
const nativeURL = globalThis.URL;
const nativeWindow = globalThis.window;

export class MockWindow {
Expand Down

0 comments on commit 72fabd1

Please sign in to comment.