Add manual mock
This commit is contained in:
committed by
Jack Kitterhing
parent
aedc7497ab
commit
0b9b7567e0
@@ -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' });
|
||||
|
||||
|
Reference in New Issue
Block a user