diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-02-02 22:17:38 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-02-02 22:17:38 +0300 |
commit | b7ddbf24011381a5ce0f3c0a98d3ef3e93d07769 (patch) | |
tree | b67f3efc4b289febe0707bc5d73851f24f0f17d2 /spec/javascripts | |
parent | 7e7875b10c80ed19a3286ee1c544038e9306da4f (diff) |
ensure helper classes and constants are exposed globally
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/boards/mock_data.js.es6 | 5 | ||||
-rw-r--r-- | spec/javascripts/environments/mock_data.js.es6 | 6 | ||||
-rw-r--r-- | spec/javascripts/helpers/class_spec_helper.js.es6 | 4 |
3 files changed, 12 insertions, 3 deletions
diff --git a/spec/javascripts/boards/mock_data.js.es6 b/spec/javascripts/boards/mock_data.js.es6 index 8d3e2237fda..7a399b307ad 100644 --- a/spec/javascripts/boards/mock_data.js.es6 +++ b/spec/javascripts/boards/mock_data.js.es6 @@ -56,3 +56,8 @@ const boardsMockInterceptor = (request, next) => { status: 200 })); }; + +window.listObj = listObj; +window.listObjDuplicate = listObjDuplicate; +window.BoardsMockData = BoardsMockData; +window.boardsMockInterceptor = boardsMockInterceptor; diff --git a/spec/javascripts/environments/mock_data.js.es6 b/spec/javascripts/environments/mock_data.js.es6 index 8ecd01f9a83..58f6fb96afb 100644 --- a/spec/javascripts/environments/mock_data.js.es6 +++ b/spec/javascripts/environments/mock_data.js.es6 @@ -1,4 +1,4 @@ -/* eslint-disable no-unused-vars */ + const environmentsList = [ { id: 31, @@ -134,6 +134,8 @@ const environmentsList = [ }, ]; +window.environmentsList = environmentsList; + const environment = { id: 4, name: 'production', @@ -147,3 +149,5 @@ const environment = { created_at: '2016-12-16T11:51:04.690Z', updated_at: '2016-12-16T12:04:51.133Z', }; + +window.environment = environment; diff --git a/spec/javascripts/helpers/class_spec_helper.js.es6 b/spec/javascripts/helpers/class_spec_helper.js.es6 index 92a20687ec5..d3c37d39431 100644 --- a/spec/javascripts/helpers/class_spec_helper.js.es6 +++ b/spec/javascripts/helpers/class_spec_helper.js.es6 @@ -1,5 +1,3 @@ -/* eslint-disable no-unused-vars */ - class ClassSpecHelper { static itShouldBeAStaticMethod(base, method) { return it('should be a static method', () => { @@ -7,3 +5,5 @@ class ClassSpecHelper { }); } } + +window.ClassSpecHelper = ClassSpecHelper; |