Fix issue causing newsletter tests to fail
Accessing wp from global scope was making the tests fail [MAILPOET-4908]
This commit is contained in:
@@ -36,6 +36,11 @@ global.$ = jQuery;
|
|||||||
global.jQuery = jQuery;
|
global.jQuery = jQuery;
|
||||||
global.window.jQuery = jQuery;
|
global.window.jQuery = jQuery;
|
||||||
global._ = _;
|
global._ = _;
|
||||||
|
global.window.wp = global.window.wp || {
|
||||||
|
i18n: {
|
||||||
|
getLocaleData: () => {},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
testHelpers.loadScript(
|
testHelpers.loadScript(
|
||||||
'tests/javascript_newsletter_editor/testBundles/vendor.js',
|
'tests/javascript_newsletter_editor/testBundles/vendor.js',
|
||||||
|
Reference in New Issue
Block a user