diff options
author | Mike Greiling <mgreiling@gitlab.com> | 2017-04-04 17:47:12 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-04-04 17:47:12 +0000 |
commit | 4461e7087d6ba76c7b5b089cac2c19db1e4e19f0 (patch) | |
tree | caacb3215d7ed5d292abf0af4f12ae1d0718e8fa /app/assets/javascripts/main.js | |
parent | d8cbe979164192231a85da386337978f6cbfc31d (diff) | |
download | gitlab-ce-4461e7087d6ba76c7b5b089cac2c19db1e4e19f0.tar.gz |
Refactor test_utils bundle
Diffstat (limited to 'app/assets/javascripts/main.js')
-rw-r--r-- | app/assets/javascripts/main.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index 665a59f3183..5b50bc62876 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -187,6 +187,9 @@ import './visibility_select'; import './wikis'; import './zen_mode'; +// eslint-disable-next-line global-require +if (process.env.NODE_ENV !== 'production') require('./test_utils/'); + document.addEventListener('beforeunload', function () { // Unbind scroll events $(document).off('scroll'); |