common.js 383 B

12345678910
  1. /**
  2. * Mock the deprecateL10nObject() for tests.
  3. *
  4. * deprecateL10nObject() is part of wp-admin/js/common.js which requires
  5. * some HTML markup to exist. Instead of adding all the markup this adds
  6. * a noop version of deprecateL10nObject(). This makes it possible
  7. * to test wp-admin/js/dashboard.js.
  8. */
  9. window.wp = window.wp || {};
  10. window.wp.deprecateL10nObject = function () {};