test(react): Add matchMedia to jest setup. (#17606)

This commit is contained in:
Josh Thomas
2019-02-25 10:56:38 -06:00
committed by GitHub
parent 621c79bd40
commit ceaef7eed2

View File

@ -1 +1,9 @@
global.crypto = require('@trust/webcrypto'); global.crypto = require('@trust/webcrypto');
window.matchMedia = window.matchMedia || function() {
return {
matches : false,
addListener : function() {},
removeListener: function() {}
};
};