diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-01-07 01:06:14 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-01-10 21:30:42 +0300 |
commit | fc3f4f88e094a192dd825d5ce4ca9bb742c8b4d3 (patch) | |
tree | 3a2c49d72dbfc89d8df1cf0e60f209037afe6ff0 | |
parent | 663936878f398710ed0fdd0f33b3c1b9efb4e1d0 (diff) |
correct vue require statements
9 files changed, 12 insertions, 12 deletions
diff --git a/spec/javascripts/boards/boards_store_spec.js.es6 b/spec/javascripts/boards/boards_store_spec.js.es6 index 99020fa213f..c8de9ad79c3 100644 --- a/spec/javascripts/boards/boards_store_spec.js.es6 +++ b/spec/javascripts/boards/boards_store_spec.js.es6 @@ -9,8 +9,8 @@ require('../spec_helper'); require('jquery-ujs'); window.Cookies = require('vendor/js.cookie'); -require('vue'); -require('vue-resource'); +window.Vue = require('vue'); +window.Vue.use(require('vue-resource')); require('lib/utils/url_utility'); require('boards/models/issue'); require('boards/models/label'); diff --git a/spec/javascripts/boards/issue_spec.js.es6 b/spec/javascripts/boards/issue_spec.js.es6 index 23bc4eb276f..143315e4ac1 100644 --- a/spec/javascripts/boards/issue_spec.js.es6 +++ b/spec/javascripts/boards/issue_spec.js.es6 @@ -5,8 +5,8 @@ require('../spec_helper'); require('jquery-ujs'); window.Cookies = require('vendor/js.cookie'); -require('vue'); -require('vue-resource'); +window.Vue = require('vue'); +window.Vue.use(require('vue-resource')); require('lib/utils/url_utility'); require('boards/models/issue'); require('boards/models/label'); diff --git a/spec/javascripts/boards/list_spec.js.es6 b/spec/javascripts/boards/list_spec.js.es6 index 11e7f25b83c..ab04e7b5896 100644 --- a/spec/javascripts/boards/list_spec.js.es6 +++ b/spec/javascripts/boards/list_spec.js.es6 @@ -8,8 +8,8 @@ require('../spec_helper'); require('jquery-ujs'); window.Cookies = require('vendor/js.cookie'); -require('vue'); -require('vue-resource'); +window.Vue = require('vue'); +window.Vue.use(require('vue-resource')); require('lib/utils/url_utility'); require('boards/models/issue'); require('boards/models/label'); diff --git a/spec/javascripts/environments/environment_actions_spec.js.es6 b/spec/javascripts/environments/environment_actions_spec.js.es6 index d2d644fc325..8d3539b29a5 100644 --- a/spec/javascripts/environments/environment_actions_spec.js.es6 +++ b/spec/javascripts/environments/environment_actions_spec.js.es6 @@ -1,5 +1,5 @@ require('../spec_helper'); -require('vue'); +window.Vue = require('vue'); require('environments/components/environment_actions'); describe('Actions Component', () => { diff --git a/spec/javascripts/environments/environment_external_url_spec.js.es6 b/spec/javascripts/environments/environment_external_url_spec.js.es6 index 42886302183..01264781a68 100644 --- a/spec/javascripts/environments/environment_external_url_spec.js.es6 +++ b/spec/javascripts/environments/environment_external_url_spec.js.es6 @@ -1,5 +1,5 @@ require('../spec_helper'); -require('vue'); +window.Vue = require('vue'); require('environments/components/environment_external_url'); describe('External URL Component', () => { diff --git a/spec/javascripts/environments/environment_item_spec.js.es6 b/spec/javascripts/environments/environment_item_spec.js.es6 index 6a697b45d67..56c718eb501 100644 --- a/spec/javascripts/environments/environment_item_spec.js.es6 +++ b/spec/javascripts/environments/environment_item_spec.js.es6 @@ -1,5 +1,5 @@ require('../spec_helper'); -require('vue'); +window.Vue = require('vue'); window.timeago = require('vendor/timeago'); require('environments/components/environment_item'); diff --git a/spec/javascripts/environments/environment_rollback_spec.js.es6 b/spec/javascripts/environments/environment_rollback_spec.js.es6 index 46002ceef8b..5c378901608 100644 --- a/spec/javascripts/environments/environment_rollback_spec.js.es6 +++ b/spec/javascripts/environments/environment_rollback_spec.js.es6 @@ -1,5 +1,5 @@ require('../spec_helper'); -require('vue'); +window.Vue = require('vue'); require('environments/components/environment_rollback'); describe('Rollback Component', () => { diff --git a/spec/javascripts/environments/environment_stop_spec.js.es6 b/spec/javascripts/environments/environment_stop_spec.js.es6 index 7ab6cbbda6a..96c738f42d6 100644 --- a/spec/javascripts/environments/environment_stop_spec.js.es6 +++ b/spec/javascripts/environments/environment_stop_spec.js.es6 @@ -1,5 +1,5 @@ require('../spec_helper'); -require('vue'); +window.Vue = require('vue'); require('environments/components/environment_stop'); describe('Stop Component', () => { diff --git a/spec/javascripts/environments/environments_store_spec.js.es6 b/spec/javascripts/environments/environments_store_spec.js.es6 index dbc03bd8c4e..8c113b5679e 100644 --- a/spec/javascripts/environments/environments_store_spec.js.es6 +++ b/spec/javascripts/environments/environments_store_spec.js.es6 @@ -1,7 +1,7 @@ /* global environmentsList */ require('../spec_helper'); -require('vue'); +window.Vue = require('vue'); require('environments/stores/environments_store'); require('./mock_data'); |