From 9581a658f5df8d079ed18e2b86cd2c2f4f400a0d Mon Sep 17 00:00:00 2001 From: Jeff Stieler Date: Mon, 17 Dec 2018 12:34:09 -0700 Subject: [PATCH] Add expected locale settings to JS test setup. --- plugins/woocommerce-admin/tests/js/setup-globals.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/woocommerce-admin/tests/js/setup-globals.js b/plugins/woocommerce-admin/tests/js/setup-globals.js index 0ee38d14127..6c0d6f9ad78 100644 --- a/plugins/woocommerce-admin/tests/js/setup-globals.js +++ b/plugins/woocommerce-admin/tests/js/setup-globals.js @@ -57,6 +57,10 @@ global.wcSettings = { refunded: 'Refunded', failed: 'Failed', }, + l10n: { + userLocale: 'en_US', + weekdaysShort: [ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' ], + }, }; setLocaleData( { '': { domain: 'wc-admin', lang: 'en_US' } }, 'wc-admin' );