2016-12-29 16:42:48 -05:00
|
|
|
require('jasmine-jquery');
|
2016-07-24 16:45:11 -04:00
|
|
|
|
2017-01-06 16:44:03 -05: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
|
|
|
|
2017-01-06 16:44:03 -05:00
|
|
|
// stub expected globals
|
2016-11-19 16:59:32 -05:00
|
|
|
window.gl = window.gl || {};
|
2016-12-30 19:14:33 -05:00
|
|
|
window.gl.TEST_HOST = 'http://test.host';
|
|
|
|
window.gon = window.gon || {};
|