Add global objects that react tooltip uses
[MAILPOET-5482]
This commit is contained in:
@@ -34,6 +34,10 @@ global.window.wp = global.window.wp || {
|
||||
getLocaleData: () => {},
|
||||
},
|
||||
};
|
||||
global.MutationObserver = global.window.MutationObserver;
|
||||
global.CustomEvent = global.window.CustomEvent;
|
||||
global.HTMLElement = global.window.HTMLElement;
|
||||
global.getComputedStyle = global.window.getComputedStyle;
|
||||
|
||||
testHelpers.loadScript(
|
||||
'tests/javascript-newsletter-editor/testBundles/vendor.js',
|
||||
|
Reference in New Issue
Block a user