diff options
Diffstat (limited to 'vnext/setupTests.js')
-rw-r--r-- | vnext/setupTests.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vnext/setupTests.js b/vnext/setupTests.js index b6aaf949..5f1e97dd 100644 --- a/vnext/setupTests.js +++ b/vnext/setupTests.js @@ -4,11 +4,11 @@ window.matchMedia = window.matchMedia || function() { return { matches: true, media: '', - addListener: function() { }, - removeListener: function() { }, - addEventListener: function() { }, - removeEventListener: function() { }, + addListener: function() { return true; }, + removeListener: function() { return true; }, + addEventListener: function() { return true; }, + removeEventListener: function() { return true; }, dispatchEvent: function() { return true; }, - onchange: function() { } + onchange: function() { return true; } }; }; |