File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
website/versioned_docs/version-23.x Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,11 @@ window.matchMedia = jest.fn().mockImplementation(query => {
146146 matches: false ,
147147 media: query,
148148 onchange: null ,
149- addListener: jest .fn (),
150- removeListener: jest .fn (),
149+ addListener: jest .fn (), // deprecated
150+ removeListener: jest .fn (), // deprecated
151+ addEventListener: jest .fn (),
152+ removeEventListener: jest .fn (),
153+ dispatchEvent: jest .fn (),
151154 };
152155});
153156```
Original file line number Diff line number Diff line change @@ -147,8 +147,11 @@ window.matchMedia = jest.fn().mockImplementation(query => {
147147 matches: false ,
148148 media: query,
149149 onchange: null ,
150- addListener: jest .fn (),
151- removeListener: jest .fn (),
150+ addListener: jest .fn (), // deprecated
151+ removeListener: jest .fn (), // deprecated
152+ addEventListener: jest .fn (),
153+ removeEventListener: jest .fn (),
154+ dispatchEvent: jest .fn (),
152155 };
153156});
154157```
You can’t perform that action at this time.
0 commit comments