Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhanlonii committed Feb 6, 2024
1 parent 137a093 commit b9ed282
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/internal-test-utils/simulateBrowserEventDispatch.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const idlUtils = require('jsdom/lib/jsdom/living/generated/utils');
const DOMException = require('domexception/webidl2js-wrapper');
const {nodeRoot} = require('jsdom/lib/jsdom/living/helpers/node');
const reportException = require('jsdom/lib/jsdom/living/helpers/runtime-script-errors');
const {
isNode,
isShadowRoot,
Expand All @@ -11,6 +11,7 @@ const {
} = require('jsdom/lib/jsdom/living/helpers/shadow-dom');

const {waitForMicrotasks} = require('./ReactInternalTestUtils');

const EVENT_PHASE = {
NONE: 0,
CAPTURING_PHASE: 1,
Expand Down Expand Up @@ -69,7 +70,7 @@ async function _dispatch(eventImpl, legacyTargetOverrideFlag) {
eventImpl._dispatchFlag = true;

const targetOverride = legacyTargetOverrideFlag
? idlUtils.implForWrapper(targetImpl._globalObject._document)
? wrapperForImpl(targetImpl._globalObject._document)
: targetImpl;
let relatedTarget = retarget(eventImpl.relatedTarget, targetImpl);

Expand Down

0 comments on commit b9ed282

Please sign in to comment.