Skip to content

Commit

Permalink
ensure react-dom sets the proper dispatcher in the global react
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jan 15, 2022
1 parent 1546efa commit 0e0bb1d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

'use strict';

describe('ReactDOMEventListener', () => {
describe('ReactDOMEventPropagation', () => {
let React;
let OuterReactDOM;
let InnerReactDOM;
Expand All @@ -16,12 +16,12 @@ describe('ReactDOMEventListener', () => {
beforeEach(() => {
window.TextEvent = function() {};
jest.resetModules();
React = require('react');
jest.isolateModules(() => {
OuterReactDOM = require('react-dom');
InnerReactDOM = require('react-dom');
});
jest.isolateModules(() => {
InnerReactDOM = require('react-dom');
React = require('react');
OuterReactDOM = require('react-dom');
});
expect(OuterReactDOM).not.toBe(InnerReactDOM);
});
Expand Down

0 comments on commit 0e0bb1d

Please sign in to comment.