diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2017-12-12 12:39:31 +0100 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2017-12-18 11:13:41 +0100 |
commit | 1109a5cea46b25b3bd27b095c5fd11881d88bd72 (patch) | |
tree | d98a26763f56fef0cebe894fd5fd4ece0870d1c2 /spec/javascripts/locale | |
parent | 3b679ef9f148f29aba09f84ba383063f34166d8c (diff) | |
download | gitlab-ce-1109a5cea46b25b3bd27b095c5fd11881d88bd72.tar.gz |
Move dateTickFormat to separate module
Diffstat (limited to 'spec/javascripts/locale')
-rw-r--r-- | spec/javascripts/locale/index_spec.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/javascripts/locale/index_spec.js b/spec/javascripts/locale/index_spec.js index 0f685c6d69d..29b0b21eed7 100644 --- a/spec/javascripts/locale/index_spec.js +++ b/spec/javascripts/locale/index_spec.js @@ -1,14 +1,6 @@ import { createDateTimeFormat, languageCode } from '~/locale'; -const setLanguage = (languageCode) => { - const htmlElement = document.querySelector('html'); - - if (languageCode) { - htmlElement.setAttribute('lang', languageCode); - } else { - htmlElement.removeAttribute('lang'); - } -}; +import { setLanguage } from '../helpers/locale_helper'; describe('locale', () => { afterEach(() => { |