Add manual mock

This commit is contained in:
Pavel Dohnal
2019-11-13 10:52:47 +01:00
committed by Jack Kitterhing
parent aedc7497ab
commit 0b9b7567e0

View File

@@ -97,6 +97,15 @@ global.stubImage = function (defaultWidth, defaultHeight) {
};
};
global.window.matchMedia = window.matchMedia || (
() => {
return {
matches: false,
addListener: () => {},
removeListener: () => {},
};
}
);
testHelpers.loadTemplate('blocks/base/toolsGeneric.hbs', window, { id: 'newsletter_editor_template_tools_generic' });