summaryrefslogtreecommitdiff
path: root/spec/frontend/vue_shared/components/timezone_dropdown/helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/vue_shared/components/timezone_dropdown/helpers.js')
-rw-r--r--spec/frontend/vue_shared/components/timezone_dropdown/helpers.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/frontend/vue_shared/components/timezone_dropdown/helpers.js b/spec/frontend/vue_shared/components/timezone_dropdown/helpers.js
new file mode 100644
index 00000000000..dee4c92add4
--- /dev/null
+++ b/spec/frontend/vue_shared/components/timezone_dropdown/helpers.js
@@ -0,0 +1,6 @@
+import timezoneDataFixture from 'test_fixtures/timezones/short.json';
+
+export { timezoneDataFixture };
+
+export const findTzByName = (identifier = '') =>
+ timezoneDataFixture.find(({ name }) => name.toLowerCase() === identifier.toLowerCase());