Commit b0341c14 authored by Mike Greiling's avatar Mike Greiling

move additional libraries into spec_helper

parent 52c6702e
/* eslint-disable no-unused-expressions, comma-spacing, prefer-const, no-prototype-builtins, semi, no-new, keyword-spacing, no-plusplus, no-shadow, max-len */ /* eslint-disable no-unused-expressions, comma-spacing, prefer-const, no-prototype-builtins, semi, no-new, keyword-spacing, no-plusplus, no-shadow, max-len */
window.Cookies = require('vendor/js.cookie');
require('vendor/jquery.endless-scroll.js'); require('vendor/jquery.endless-scroll.js');
require('pager'); require('pager');
require('activities'); require('activities');
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* global AwardsHandler */ /* global AwardsHandler */
require('awards_handler'); require('awards_handler');
window.Cookies = require('vendor/js.cookie');
require('./fixtures/emoji_menu'); require('./fixtures/emoji_menu');
(function() { (function() {
......
...@@ -6,10 +6,6 @@ ...@@ -6,10 +6,6 @@
/* global listObj */ /* global listObj */
/* global listObjDuplicate */ /* global listObjDuplicate */
require('jquery-ujs');
window.Cookies = require('vendor/js.cookie');
window.Vue = require('vue');
window.Vue.use(require('vue-resource'));
require('lib/utils/url_utility'); require('lib/utils/url_utility');
require('boards/models/issue'); require('boards/models/issue');
require('boards/models/label'); require('boards/models/label');
......
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
/* global BoardService */ /* global BoardService */
/* global ListIssue */ /* global ListIssue */
require('jquery-ujs');
window.Cookies = require('vendor/js.cookie');
window.Vue = require('vue');
window.Vue.use(require('vue-resource'));
require('lib/utils/url_utility'); require('lib/utils/url_utility');
require('boards/models/issue'); require('boards/models/issue');
require('boards/models/label'); require('boards/models/label');
......
...@@ -5,10 +5,6 @@ ...@@ -5,10 +5,6 @@
/* global List */ /* global List */
/* global listObj */ /* global listObj */
require('jquery-ujs');
window.Cookies = require('vendor/js.cookie');
window.Vue = require('vue');
window.Vue.use(require('vue-resource'));
require('lib/utils/url_utility'); require('lib/utils/url_utility');
require('boards/models/issue'); require('boards/models/issue');
require('boards/models/label'); require('boards/models/label');
......
/* eslint-disable no-new, padded-blocks */ /* eslint-disable no-new, padded-blocks */
require('sidebar'); require('sidebar');
window.Cookies = require('vendor/js.cookie');
require('lib/utils/text_utility'); require('lib/utils/text_utility');
((global) => { ((global) => {
......
window.Vue = require('vue');
require('environments/components/environment_actions'); require('environments/components/environment_actions');
describe('Actions Component', () => { describe('Actions Component', () => {
......
window.Vue = require('vue');
require('environments/components/environment_external_url'); require('environments/components/environment_external_url');
describe('External URL Component', () => { describe('External URL Component', () => {
......
window.Vue = require('vue');
window.timeago = require('vendor/timeago'); window.timeago = require('vendor/timeago');
require('environments/components/environment_item'); require('environments/components/environment_item');
......
window.Vue = require('vue');
require('environments/components/environment_rollback'); require('environments/components/environment_rollback');
describe('Rollback Component', () => { describe('Rollback Component', () => {
......
window.Vue = require('vue');
require('environments/components/environment_stop'); require('environments/components/environment_stop');
describe('Stop Component', () => { describe('Stop Component', () => {
......
/* global environmentsList */ /* global environmentsList */
window.Vue = require('vue');
require('environments/stores/environments_store'); require('environments/stores/environments_store');
require('./mock_data'); require('./mock_data');
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* global Sidebar */ /* global Sidebar */
require('right_sidebar'); require('right_sidebar');
window.Cookies = require('vendor/js.cookie');
require('extensions/jquery.js'); require('extensions/jquery.js');
(function() { (function() {
......
...@@ -3,6 +3,10 @@ require('jasmine-jquery'); ...@@ -3,6 +3,10 @@ require('jasmine-jquery');
// include common libraries // include common libraries
window.$ = window.jQuery = require('jquery'); window.$ = window.jQuery = require('jquery');
window._ = require('underscore'); window._ = require('underscore');
window.Cookies = require('vendor/js.cookie');
window.Vue = require('vue');
window.Vue.use(require('vue-resource'));
require('jquery-ujs');
require('vendor/turbolinks'); require('vendor/turbolinks');
require('vendor/jquery.turbolinks'); require('vendor/jquery.turbolinks');
require('bootstrap/js/affix'); require('bootstrap/js/affix');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment