gitlab-org--gitlab-foss/spec/javascripts/spec_helper.js

28 lines
858 B
JavaScript
Raw Normal View History

2016-12-29 16:42:48 -05:00
require('jasmine-jquery');
2016-07-24 16:45:11 -04:00
// include common libraries
window.$ = window.jQuery = require('jquery');
window._ = require('underscore');
require('vendor/turbolinks');
require('vendor/jquery.turbolinks');
require('bootstrap/js/affix');
require('bootstrap/js/alert');
require('bootstrap/js/button');
require('bootstrap/js/collapse');
require('bootstrap/js/dropdown');
require('bootstrap/js/modal');
require('bootstrap/js/scrollspy');
require('bootstrap/js/tab');
require('bootstrap/js/transition');
require('bootstrap/js/tooltip');
require('bootstrap/js/popover');
// configure jasmine
2016-12-29 16:42:48 -05:00
jasmine.getFixtures().fixturesPath = 'base/spec/javascripts/fixtures';
jasmine.getJSONFixtures().fixturesPath = 'base/spec/javascripts/fixtures';
2016-07-24 16:45:11 -04:00
// stub expected globals
window.gl = window.gl || {};
window.gl.TEST_HOST = 'http://test.host';
window.gon = window.gon || {};